I am trying to make a model/ grouped object disappear when touched then reappear after 5 seconds, if anyone knows how to do this please send me the code
COMMUNITY QUESTION
I need to make a group object disappear then reappear Help scripting?
1 answer
This isn't a request site but i'll give you the code. If you want It do it on the model then change lines 7 - 9 to workspace.Model.Part.Transparency
while true do
wait()
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
workspace.Part.Transparency = 1
wait(3) -- Change this to the time that you want
workspace.Part.Transparency = 0
end
end)
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
