I have this script that I just added touch function in. But when first touch it keeps being removed when spawned.
How do I stop the "touch" function after being touched?
Script: (Normal)
model = script.Parent
backup = model:clone()
script.Parent.Touched:connect(function(part)
while true do
wait(part)
model:remove()
wait(math.random(7,23))
model = backup
model.Parent = game.Workspace
model:makeJoints()
end
end)

2 comments
Ok thanks, good to know it worked
It helped and didn't made it. Which is actually what it is supposed to be. Now it works.