of     1   

marshallclan
#63470738Sunday, February 26, 2012 9:52 AM GMT

How would you make a simple script so that on click a different brick (script.parent.parent.door) go right 15 studs?
Riderj
#63470836Sunday, February 26, 2012 10:00 AM GMT

script.Parent.ClickDetector.MouseClick(function() game.Workspace.Door.CFrame = game.Workspace.Door.CFrame * CFrame.new(15,0,0) end) [[ 7/10 - Scripting| 4/10 - Building | 10/10 - Confused ]]
marshallclan
#63471784Sunday, February 26, 2012 11:20 AM GMT

It's not working -_# 11:13:20 - Workspace.ButtonBench.Smooth Block Model.Script:1: attempt to call field 'MouseClick' (a userdata value) 11:13:20 - Script "Workspace.ButtonBench.Smooth Block Model.Script", Line 1 11:13:20 - stack end
marshallclan
#63471908Sunday, February 26, 2012 11:31 AM GMT

Help?
Lead_Scripter
#63472241Sunday, February 26, 2012 11:53 AM GMT

"MouseClick" is not a function you must use the method connect to call the function: script.Parent.ClickDetector.MouseClick:connect(function() game.Workspace.Door.CFrame = game.Workspace.Door.CFrame * CFrame.new(15,0,0) end)
Riderj
#63485452Sunday, February 26, 2012 5:41 PM GMT

It was 5 am can you blame me for messing up? [[ 7/10 - Scripting| 4/10 - Building | 10/10 - Confused ]]
CombativeStriker
#63486641Sunday, February 26, 2012 6:01 PM GMT

use the command bar T_T
marshallclan
#63530692Monday, February 27, 2012 10:25 AM GMT

@rider well yes cos its a SIMPLE script.

    of     1