Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- d = false
- script.Parent.Parent.Sleep.Touched:connect(function(hit)
- if d == false then d = true
- if game.Players:findFirstChild(hit.Parent.Name) ~= nil then
- local player = game.Players[hit.Parent.Name]
- if player.PlayerGui:findFirstChild("Day/Night Message") == nil then
- local gui = script["Day/Night Message"]:clone()
- gui.Parent = player.PlayerGui
- repeat
- wait()
- until (player.Character.Torso.Position - script.Parent.Position).magnitude > 2
- --gui:remove()
- d = false
- wait(3)
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement