m = script.Parent
r = script.res
c = m:Clone()
local gui = script.Parent.sur:Clone()
function t()
if r.Value == false then
gui.Parent = game.Players.LocalPlayer.PlayerGui
wait(1)
script.Disabled = true
m:remove()
r.Value = true
wait(6)
script.Disabled = false
m = m:Clone()
m.Parent = game.Workspace
m:makeJoints()
r.Value = false
end
end
m.Touched:connect(t)
Basically, when a player touches the model, the model removes and inserts a gui into the Player's gui. Then, after 6 seconds, the model appears again for another player to touch. There are no errors in the Developer Console, but the script wont work.

1 comment
Maybe the beginning with the value....Have no idea since no error...