|
| 24 Feb 2012 11:07 PM |
top = script.Parent.Parent.Bottom bottom = script.Parent.Parent.Top
function(onClicked) top.Anchored = false bottom.Anchored = false wait(9) top.Anchored = true bottom.Anchored = true top.BodyVelocity = Vector3.new(50,0,0) bottom.BodyVelocity = Vector3.new(-50,0,0) script.Parent.BrickColor = "Bright green" script.Parent.Script2.Disabled = false script.Disabled = true end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
That is the script and it says: name expected near "(" in line 4. Whats wrong? |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 24 Feb 2012 11:09 PM |
You don't have a function, you just have an parameter.
top = script.Parent.Parent.Bottom bottom = script.Parent.Parent.Top
function onClicked() top.Anchored = false bottom.Anchored = false wait(9) top.Anchored = true bottom.Anchored = true top.BodyVelocity = Vector3.new(50,0,0) bottom.BodyVelocity = Vector3.new(-50,0,0) script.Parent.BrickColor = BrickColor.new("Bright green") script.Parent.Script2.Disabled = false script.Disabled = true end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
|
|
|
| Report Abuse |
|
|
| |
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 24 Feb 2012 11:11 PM |
| OMG DERP!!!!!! You're welcome :D |
|
|
| Report Abuse |
|
|
|
| 24 Feb 2012 11:16 PM |
| Ok now it says BodyVelocity is not a member of the the brick (line 10) I inserted a BodyVelocity....nvm |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 24 Feb 2012 11:22 PM |
...
I'm not sure if you need more help or you're done because of that nvm :l |
|
|
| Report Abuse |
|
|
|
| 24 Feb 2012 11:32 PM |
| I just got it working, thanks for help |
|
|
| Report Abuse |
|
|