Hey, so here's my script:
local hold = false
script.Parent.Touched:connect(function(hit)
if not hold then
hold = true
game.Players.LocalPlayer.PlayerGui.ScreenGui.ImageGui.Enabled = true
wait(1)
game.Players.LocalPlayer.PlayerGui.ScreenGui.ImageGui.Enabled = false
hold = false
end
end
This works in Studio, but not online. What should I do to fix this? |