Advertisement
XzotikkDeath

Untitled

Sep 29th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. ---- JUST A TEST SCRIPT
  2.  
  3. local Admins = {"XzotikDeathGT"} <--- Your name goes there.
  4.  
  5. local Prefix = ";" -- What you put before a command.
  6.  
  7. for i,v in pairs{Admins} do
  8. game.players{Admins[i]}.Chatted:Connect(function(msg)
  9. if msg:lower() == Prefix .. "shutdown" then
  10. game.players:ClearAllChildren() -- Removes all of the players.
  11. game.Workspace:ClearAllChildren() -- Removes everything in the workspace.
  12. end
  13.  
  14. if msg:lower() == Prefix .. "ff me" then -- lower:() makes it so you can do it like Ff Me or FF mE or anyway you want.
  15. Instance.new("Forcefield", game.Players{Admins[i]}.Character) -- Give the localplayer an ff without using localplayer.
  16. end
  17. end
  18.  
  19. if msg:lower() == Prefix .. "unff me" then
  20. while wait() do -- This will remove all of the forcefields on the player until they are all gone.
  21. game.Players{Admins[i]}.Character.Forcefield:Destroy()
  22. end
  23.  
  24. if msg:lower() == Prefix .. "Freecam me" then
  25. game.Players{Admins[i]}.Character.Torso.Anchored = true -- This Anchors the Torso, so the actual player can't move.
  26. game.Players{Admins[i]}.Character.HumanoidRootPart.Anchored = true -- This Anchors the "Humanoid"
  27. end
  28. end)
  29. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement