|
| 30 Jun 2012 11:22 PM |
door = script.Parent
function onTouch() if door.ART.Value == 1 then wait() X = door:Clone wait() X.Double:Remove() X.Value:Remove() X.Parent = door.Parent wait(0.5) end
else if door.ART.Value == 0 then wait(math.random(0.5, 3)) X:Remove() end end door.Touched:connect(onTouch)
I've tried many things - yet the same error always shows up.
21:20:11 - Workspace.BayorDB.ARTIFACT.Double:7: function arguments expected near 'wait'
|
|
|
| Report Abuse |
|
|
WhiteRain
|
  |
| Joined: 24 Apr 2010 |
| Total Posts: 2723 |
|
| |
|
|
| 30 Jun 2012 11:25 PM |
:clone() is just like :Remove().. It needs () also. I'm not sure, but maybe lowercase Clone, that's how I've seen it used many time.
~Clans fall, people don't~ |
|
|
| Report Abuse |
|
|
|
| 30 Jun 2012 11:27 PM |
White, go to sleep D= I wanna help people too!
~Clans fall, people don't~ |
|
|
| Report Abuse |
|
|
WhiteRain
|
  |
| Joined: 24 Apr 2010 |
| Total Posts: 2723 |
|
| |
|
|
| 30 Jun 2012 11:29 PM |
Ok, thank you - but now a new one showed up..
21:25:44 - Workspace.BayorDB.ARTIFACT.Double:15: 'eof' expected near 'else'
[ Note, there is a > after eof.]
[ And a < before it. ]
[ Won't let me post it, due to BCode errors. ] |
|
|
| Report Abuse |
|
|
WhiteRain
|
  |
| Joined: 24 Apr 2010 |
| Total Posts: 2723 |
|
|
| 30 Jun 2012 11:35 PM |
Remove the end after the wait(0.5) and make else if one word as elseif |
|
|
| Report Abuse |
|
|
|
| 30 Jun 2012 11:49 PM |
That.. Worked!
Thanks!
Now, I just have to solve for one problem - Deleting the clones before they lagg up the entire game. |
|
|
| Report Abuse |
|
|