generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Can I, Please, Get Some Help With This Script?

Previous Thread :: Next Thread 
evilishnessII is not online. evilishnessII
Joined: 26 Mar 2011
Total Posts: 10275
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 is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
30 Jun 2012 11:24 PM
:Clone()
Report Abuse
LordSiphon is not online. LordSiphon
Joined: 28 May 2012
Total Posts: 518
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
LordSiphon is not online. LordSiphon
Joined: 28 May 2012
Total Posts: 518
30 Jun 2012 11:27 PM
White, go to sleep D= I wanna help people too!

~Clans fall, people don't~
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
30 Jun 2012 11:29 PM
Lol'd
Report Abuse
evilishnessII is not online. evilishnessII
Joined: 26 Mar 2011
Total Posts: 10275
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 is not online. 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
evilishnessII is not online. evilishnessII
Joined: 26 Mar 2011
Total Posts: 10275
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image