Advertisement
404Coder

admin chat commands

Oct 3rd, 2023
1,753
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.50 KB | None | 0 0
  1. print("enabling Chat cmd Prompts")
  2. wait(3.0)
  3. local Chat = game.User.UserId(Chat, Prompts):GetChatServices)
  4. Commands = {
  5.  local Commands = '[/Noclip]', '[/btools]', '[/Fly]', '[/BigHead]', '[/InfJump]',
  6. '[/speed]',
  7.   }
  8. --//this is for the chat prefix which is the symbol / so the admin can work as a command
  9. local Command = game:GetService("ChatService")
  10.  if ChatPrefix == "/" then
  11. Prefix.Chat = Commands.onServerEvent('Chat')
  12. function onEnterCommand(CommandOnEnter)
  13.     CommandOnEnter = game:GetPrefix for (Commands)
  14.     end
  15. local onEntered = game for Command i,v in pairs(CommandOnEntered)    
  16. end
  17.  
  18. --//now this is for the first Command script
  19. local Prefix = "/"
  20. if Prefix == "/" then
  21. end
  22. local Chat = game.Player.LocalPlayer('ChatService')
  23. local Speed = onEnteredCommand:GetService()
  24. Chat.onEntered = "/Speed"
  25. local onEntered = game:GetPrefix("/")
  26. if Player.onEnteredCommand == "/Speed" then
  27. end
  28. wait(1) onEnteredCommand
  29. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 150 --//change to whatever you want it be\\--
  30.  
  31. --//2nd script\\--
  32. local Prefix = "/"
  33. if Prefix == "/" then
  34. end
  35. local Chat = game.Player.LocalPlayer('ChatService')
  36. local Speed = onEnteredCommand:GetService()
  37. Chat.onEntered = "/InfJump"
  38. local onEntered = game:GetPrefix("/")
  39. if Player.onEnteredCommand == "/InfJump" then
  40. end
  41. wait(1) onEnteredCommand
  42. local Player = game:GetService'Players'.LocalPlayer;
  43. local UIS = game:GetService'UserInputService';
  44.  
  45. _G.JumpHeight = 50;
  46.  
  47. function Action(Object, Function) if Object ~= nil then Function(Object); end end
  48.  
  49. UIS.InputBegan:connect(function(UserInput)
  50.     if UserInput.UserInputType == Enum.UserInputType.Keyboard and UserInput.KeyCode == Enum.KeyCode.Space then
  51.         Action(Player.Character.Humanoid, function(self)
  52.             if self:GetState() == Enum.HumanoidStateType.Jumping or self:GetState() == Enum.HumanoidStateType.Freefall then
  53.                 Action(self.Parent.HumanoidRootPart, function(self)
  54.                     self.Velocity = Vector3.new(0, _G.JumpHeight, 0);
  55.                 end)
  56.             end
  57.         end)
  58.     end
  59. end)
  60.    
  61. --//3rd Script\\--
  62. local Prefix = "/"
  63. if Prefix == "/" then
  64. end
  65. local Chat = game.Player.LocalPlayer('ChatService')
  66. local Speed = onEnteredCommand:GetService()
  67. Chat.onEntered = "/NoClip"
  68. local onEntered = game:GetPrefix("/")
  69. if Player.onEnteredCommand == "/NoClip" then
  70. end
  71. wait(1) onEnteredCommand
  72. local Noclip = nil
  73. local Clip = nil
  74.  
  75. function noclip()
  76.     Clip = false
  77.     local function Nocl()
  78.         if Clip == false and game.Players.LocalPlayer.Character ~= nil then
  79.             for _,v in pairs(game.Players.LocalPlayer.Character:GetDescendants()) do
  80.                 if v:IsA('BasePart') and v.CanCollide and v.Name ~= floatName then
  81.                     v.CanCollide = false
  82.                 end
  83.             end
  84.         end
  85.         wait(0.21) -- basic optimization
  86.     end
  87.     Noclip = game:GetService('RunService').Stepped:Connect(Nocl)
  88. end
  89.  
  90. function clip()
  91.     if Noclip then Noclip:Disconnect() end
  92.     Clip = true
  93. end
  94.  
  95. noclip() -- to toggle noclip() and clip()
  96.    
  97. --//4th script
  98. local Prefix = "/"
  99. if Prefix == "/" then
  100. end
  101. local Chat = game.Player.LocalPlayer('ChatService')
  102. local Speed = onEnteredCommand:GetService()
  103. Chat.onEntered = "/BigHead"
  104. local onEntered = game:GetPrefix("/")
  105. if Player.onEnteredCommand == "/BigHead" then
  106. end
  107. wait(1) onEnteredCommand
  108. _G.HeadSize = 40
  109.  _G.HeadOffset = 20
  110.  _G.FEnabled = true
  111.  game:service'RunService'.Stepped:connect(function()
  112.     if _G.FEnabled then
  113.         for i,v in pairs(game:service'Players':GetPlayers()) do
  114.             if v.TeamColor ~= game:service'Players'.LocalPlayer.TeamColor then
  115.             --if v.Name ~= game:service'Players'.LocalPlayer.Name then
  116.                 pcall(function()
  117.                     pcall(function()v.Character.Head.Mesh:Destroy() end)
  118.                     v.Character.Head.CanCollide = false
  119.                     v.Character.Head.Size = Vector3.new(_G.HeadSize,_G.HeadSize,_G.HeadSize)
  120.                     v.Character.Head.CFrame = v.Character.Torso.CFrame * CFrame.new(0,_G.HeadOffset,0)
  121.                 end)
  122.             --end
  123.             end
  124.         end
  125.     end
  126.  end)
  127.    
  128. --//5th script\\--
  129. local Prefix = "/"
  130. if Prefix == "/" then
  131. end
  132. local Chat = game.Player.LocalPlayer('ChatService')
  133. local Speed = onEnteredCommand:GetService()
  134. Chat.onEntered = "/Btools"
  135. local onEntered = game:GetPrefix("/")
  136. if Player.onEnteredCommand == "/Btool" then
  137. end
  138. wait(1) onEnteredCommand
  139. a = Instance.new("HopperBin", game.Players.LocalPlayer.Backpack)
  140. a.BinType = 2
  141. b = Instance.new("HopperBin", game.Players.LocalPlayer.Backpack)
  142. b.BinType = 3
  143. c = Instance.new("HopperBin", game.Players.LocalPlayer.Backpack)
  144. c.BinType = 4
  145.    
  146. --//6th script\\--
  147. local Prefix = "/"
  148. if Prefix == "/" then
  149. end
  150. local Chat = game.Player.LocalPlayer('ChatService')
  151. local Speed = onEnteredCommand:GetService()
  152. Chat.onEntered = "/Fly"
  153. local onEntered = game:GetPrefix("/")
  154. if Player.onEnteredCommand == "/Fly" then
  155. end
  156. wait(1) onEnteredCommand
  157. local flying = false
  158. local flySpeed = 50 -- you can adjust this value to change the flying speed.
  159.  
  160.  
  161. local function enableFlying()
  162.     if humanoid then
  163.         humanoid.PlatformStand = true
  164.         humanoid.AutoRotate = false
  165.         humanoid:SetStateEnabled(Enum.HumanoidStateType.Flying, true)
  166.         flying = true
  167.     end
  168. end
  169.  
  170.  
  171. local function disableFlying()
  172.     if humanoid then
  173.         humanoid.PlatformStand = false
  174.         humanoid.AutoRotate = true
  175.         humanoid:SetStateEnabled(Enum.HumanoidStateType.Flying, false)
  176.         flying = false
  177.     end
  178. end
  179.  
  180.  
  181. local function handleInput(input, gameProcessedEvent)
  182.     if gameProcessedEvent then
  183.         return
  184.     end
  185.  
  186.     if flying and input.UserInputType == Enum.UserInputType.Keyboard then
  187.         local moveVector = Vector3.new()
  188.  
  189.         if input.KeyCode == Enum.KeyCode.W then
  190.             moveVector = moveVector + Vector3.new(0, 0, -1)
  191.         end
  192.         if input.KeyCode == Enum.KeyCode.S then
  193.             moveVector = moveVector + Vector3.new(0, 0, 1)
  194.         end
  195.         if input.KeyCode == Enum.KeyCode.A then
  196.             moveVector = moveVector + Vector3.new(-1, 0, 0)
  197.         end
  198.         if input.KeyCode == Enum.KeyCode.D then
  199.             moveVector = moveVector + Vector3.new(1, 0, 0)
  200.         end
  201.  
  202.         character:SetPrimaryPartCFrame(CFrame.new(character.PrimaryPart.Position + moveVector * flySpeed))
  203.     end
  204. end
  205.  
  206.  
  207. game:GetService("UserInputService").InputBegan:Connect(handleInput)
  208. game:GetService("UserInputService").InputChanged:Connect(handleInput)
  209.  
  210.  
  211. --//Made by 404Coder\\--
  212.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement