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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 24 Nov 2009 |
| Total Posts: 357 |
|
| |
|
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 |
|
|
|
| 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
|
  |
| Joined: 08 Jun 2008 |
| Total Posts: 6653 |
|
|
| 07 Mar 2010 10:44 AM |
@ scipiothegreat I didn't think of that! |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 24 Nov 2009 |
| Total Posts: 357 |
|
| |
|