Advertisement
Guest User

Untitled

a guest
Jan 28th, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. d = false
  2. script.Parent.Parent.Sleep.Touched:connect(function(hit)
  3. if d == false then d = true
  4. if game.Players:findFirstChild(hit.Parent.Name) ~= nil then
  5. local player = game.Players[hit.Parent.Name]
  6. if player.PlayerGui:findFirstChild("Day/Night Message") == nil then
  7. local gui = script["Day/Night Message"]:clone()
  8. gui.Parent = player.PlayerGui
  9. repeat
  10. wait()
  11. until (player.Character.Torso.Position - script.Parent.Position).magnitude > 2
  12. --gui:remove()
  13. d = false
  14. wait(3)
  15. end
  16. end
  17. end
  18. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement