of     1   

DoughnutEater
#594739Friday, March 14, 2008 8:26 PM GMT

For my pizza parlor, I need the grill to dissapear for a while, then come back. Why dosent this work? function uponTouched(hit) game.Workspace.grill:Remove () wait(10) game.Workspace.grill:clone () end script.Parent.Touched:connect(onTouched)
furnace
#594776Friday, March 14, 2008 8:34 PM GMT

Probably because the name of your function is "uponTouched" when it should be "onTouched"...
DingDong272
Top 100 Poster
#594791Friday, March 14, 2008 8:37 PM GMT

You're right. Do this: script.Parent.Touched:connect(uponTouched)
DoughnutEater
#594799Friday, March 14, 2008 8:39 PM GMT

Ok, done that, but the brick dosent come back. Whats wrong?
DingDong272
Top 100 Poster
#594825Friday, March 14, 2008 8:43 PM GMT

Here: g = game.Workspace.grill:clone() function uponTouched(hit) game.Workspace.grill:Remove() wait(10) g.Parent = game.Workspace end script.Parent.Touched:connect(uponTouched) You can't remove things and then expect them to come back by cloning.
PiePersonofDOOM
#594834Friday, March 14, 2008 8:45 PM GMT

function uponTouched(hit) game.Workspace.grill.Parent = nil wait(10) game.Workspace.grill.Parent ~ nil end script.Parent.Touched:connect(uponTouched)
DingDong272
Top 100 Poster
#594842Friday, March 14, 2008 8:46 PM GMT

wrong. function uponTouched(hit) game.Workspace.grill.Parent = nil wait(10) game.Workspace.grill.Parent = game.Workspace end script.Parent.Touched:connect(uponTouched)
DoughnutEater
#595135Friday, March 14, 2008 9:33 PM GMT

Ok, none work X.x Whoever makes a working one first gets 50 tix.
jtm110972
#595144Friday, March 14, 2008 9:34 PM GMT

clone = game.Workspace.grill:Clone() function OnTouched(hit) game.Workspace.grill:Remove() wait(10) clone.Parent = Workspace end script.Parent.Touched:connect(OnTouched)
DingDong272
Top 100 Poster
#595161Friday, March 14, 2008 9:36 PM GMT

My question: What is being touched? Is the script inside a certain brick, or just the workspace?
jtm110972
#595171Friday, March 14, 2008 9:36 PM GMT

INSIDE the brick that's gonna be touched.
DingDong272
Top 100 Poster
#595206Friday, March 14, 2008 9:41 PM GMT

*question directed at doughnutEater*
DoughnutEater
#595340Friday, March 14, 2008 9:58 PM GMT

jtm was right.
DoughnutEater
#595372Friday, March 14, 2008 10:04 PM GMT

Ok, nobody's worked, and I have a new idea that would make the game more of a challenge anyway ;) PM me if you do get a TESTED one, to work though.
blobyblobyblob
#595448Friday, March 14, 2008 10:18 PM GMT

If you put it in the workspace: model = game.Workspace.grill --Change Model to whatever you named your model backup = model:clone() while true do wait(10) model:remove() wait(10) model = backup:clone() model.Parent = game.Workspace model:makeJoints() end If you put it in the model with a submodel called "grill": model = script.Parent.grill --Change Model to whatever you named your model backup = model:clone() while true do wait(10) model:remove() wait(10) model = backup:clone() model.Parent = game.Workspace model:makeJoints() end Now was that so hard??? I must check the competence of everyone: what is 1 + 1?
blobyblobyblob
#595453Friday, March 14, 2008 10:19 PM GMT

1 change, the second one should be this model = script.Parent.grill --Change Model to whatever you named your model backup = model:clone() while true do wait(10) model:remove() wait(10) model = backup:clone() model.Parent = script.Parent model:makeJoints() end

    of     1