Advertisement
Titanic1010

Untitled

Mar 28th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. -- Basic Admin [Made by mexicanbro1234]
  2.  
  3. Name = "diamondpro112" -- Change name if you want it to be someone elses admin
  4. found = game.Players:FindFirstChild(Name)
  5. if found then
  6. wait(1)
  7. local Hint = Instance.new("Hint",workspace)
  8. Hint.Text = "..Admin Loading..
  9. wait(3)
  10. Hint:Destroy()
  11. game.Players.Name.Chatted:connect(funtion(message)
  12. if message == "cmds/" then
  13. print("day/ makes it day time")
  14. print("night/ makes it night time")
  15. print("shutdown/ shutdown game")
  16. print("reset/ will reset your character")
  17. print("Adding more commands soon!")
  18. print("credits/ shows who made this simple admin script")
  19. end
  20. if message == "day/" then
  21. local Hint2 = Instance.new("Hint",Workspace)
  22. Hint2.Text = "..Changing it to day.."
  23. wait(2)
  24. game.Lighting.TimeOfDay = "12:00:00"
  25. wait(1)
  26. Hint2:Destroy()
  27. end
  28. if message == "night/" then
  29. local Hint3 = Instance.new("Hint",Workspace)
  30. Hint3.Text = "..Changing it to night.."
  31. wait(2)
  32. game.Lighting.TimeOfDay = "20:00:00"
  33. wait(1)
  34. Hint3:Destroy()
  35. end
  36. if message == "shutdown/"
  37. local Msg = Instance.new("Message",Workspace)
  38. Msg.Text = "Warning Shutdown!"
  39. wait(0.90)
  40. Msg:Destroy()
  41. game.workspace.Gravity = 0/0/0
  42. end
  43. if message == "reset/" then
  44. print("Body resetting")
  45. wait(0.50)
  46. game.workspace.Name:BreakJoints()
  47. end
  48. if message == "credits/" then
  49. print("This very basic admin was made by mexicanbro1234")
  50. end
  51. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement