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: Why WONT THIS SCRIPT WORK

Previous Thread :: Next Thread 
bnroys is not online. bnroys
Joined: 24 Nov 2009
Total Posts: 357
07 Mar 2010 10:07 AM
function onTouched(hit)

wait(3)
script.Parent.Anchored = false
wait(5)
game.Lighting.FallingBlocks.1:clone().Parent = game.Workpace.FallingBlocks
wait(2)

end

script.Parent.Touched:connect(onTouched)

I named the brick 1 and put it in a model called FallingBlocks then copyed it into lighting but when I touch it NOTHING HAPPENS please help.

I accedentally posted this is building helpers and no one replied so I posted this is the CORRECT forrum.
Report Abuse
bnroys is not online. bnroys
Joined: 24 Nov 2009
Total Posts: 357
07 Mar 2010 10:12 AM
cmon, if you veiw just reply, even if you dont know the answer you cold post something like "Thats Weird" or "I tryed it and it worked for me!"
Report Abuse
wushue34 is not online. wushue34
Joined: 08 Jun 2008
Total Posts: 6653
07 Mar 2010 10:18 AM
function onTouched(hit)

wait(3)
script.Parent.Anchored = false
wait(5)
game.Lighting.FallingBlocks.1:clone()
1.Parent = game.Workspace.FallingBlocks
wait(2)

end

script.Parent.Touched:connect(onTouched)

Try that?
Report Abuse
wushue34 is not online. wushue34
Joined: 08 Jun 2008
Total Posts: 6653
07 Mar 2010 10:21 AM
Ooops forgot debounce:

local debounce = false
wait(3)
script.Parent.Anchored = false
wait(5)
game.Lighting.FallingBlocks.1:clone()
1.Parent = game.Workspace.FallingBlocks
wait(2)

end

script.Parent.Touched:connect(onTouched)
Report Abuse
bnroys is not online. bnroys
Joined: 24 Nov 2009
Total Posts: 357
07 Mar 2010 10:34 AM
what IS debounce?
Report Abuse
wushue34 is not online. wushue34
Joined: 08 Jun 2008
Total Posts: 6653
07 Mar 2010 10:41 AM
debounce, is basicly like:

you have a button and you stepp on it and it makes a message.
But to not make it spam the screen with the same message you use: debounce = false.
Report Abuse
scipiothegreat is not online. scipiothegreat
Joined: 25 Apr 2008
Total Posts: 4114
07 Mar 2010 10:43 AM
You're trying to get and object named "1" from a model. Unfortunately, you can't do that.

Try game.Lighting.FallingBlocks["1"]:clone()
Report Abuse
wushue34 is not online. wushue34
Joined: 08 Jun 2008
Total Posts: 6653
07 Mar 2010 10:44 AM
@ scipiothegreat
I didn't think of that!
Report Abuse
bnroys is not online. bnroys
Joined: 24 Nov 2009
Total Posts: 357
07 Mar 2010 10:52 AM
I already figured that out about the modelname 1 but now it wont regen! -_-
Report Abuse
bnroys is not online. bnroys
Joined: 24 Nov 2009
Total Posts: 357
07 Mar 2010 12:20 PM
nvm i fixed it
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