This one's pretty simple, really. First, we define the model in a variable.
model = script.Parent
Next, we make the function.
model = script.Parent
model.Touched:connect(function(t)
end)
Then, we make the model's parent "nil"
model = script.Parent
model.Touched:connect(function(t)
model.Parent = nil
end)
Finally, we wait 5 seconds before having its parent be the workspace again.
model = script.Parent
model.Touched:connect(function(t)
model.Parent = nil
wait(5)
model.Parent = game.Workspace
end)
It's as easy as that!
2 comments
This removes the model from the workspace. If you want it to just make the model invisible, do exactly what you did on line 2, but making the transparency 0. After waiting 5 seconds, of course.
When I put the script into the model it didnt work...