Advertisement
DankBladeZS

C0NTROLLIFY

Jul 8th, 2020 (edited)
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.42 KB | None | 0 0
  1. local plr = game.Players.LocalPlayer
  2. local cooldown = false
  3. toggle = true
  4. chatcommands = true --chat the commands and shit
  5. local function chat(string)
  6.     game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(string, "All")
  7. end
  8. if chatcommands == true then
  9. chat("C0NTROLLIFY loaded. | Controls: w, a, s, d, jump, die, sit, kill, commit toaster bath, chat, bring. | You can also use /e. | Cooldown: ss1 sec.")
  10. end
  11.  
  12. for i,v in pairs(game.Players:GetPlayers()) do
  13. v.Chatted:Connect(function(a)
  14.     if a:lower() == 'w' or a:lower() == '/e w' then
  15.        plr.Character.Humanoid:MoveTo(Vector3.new(plr.Character.HumanoidRootPart.Position.X,plr.Character.HumanoidRootPart.Position.Y,plr.Character.HumanoidRootPart.Position.Z+3))
  16.     end
  17.     if a:lower() == 'a' or a:lower() == '/e a' then
  18.         plr.Character.Humanoid:MoveTo(Vector3.new(plr.Character.HumanoidRootPart.Position.X+3,plr.Character.HumanoidRootPart.Position.Y,plr.Character.HumanoidRootPart.Position.Z))
  19.     end
  20.     if a:lower() == 's' or a:lower() == '/e s' then
  21.         plr.Character.Humanoid:MoveTo(Vector3.new(plr.Character.HumanoidRootPart.Position.X,plr.Character.HumanoidRootPart.Position.Y,plr.Character.HumanoidRootPart.Position.Z-3))
  22.     end
  23.     if a:lower() == 'd' or a:lower() == '/e d' then
  24.         plr.Character.Humanoid:MoveTo(Vector3.new(plr.Character.HumanoidRootPart.Position.X-3,plr.Character.HumanoidRootPart.Position.Y,plr.Character.HumanoidRootPart.Position.Z))
  25.     end
  26.     if a:lower() == 'jump' or a:lower() == '/e jump' then
  27.         plr.Character.Humanoid.Jump = true
  28.     end
  29.     if a:lower() == 'die' or a:lower() == '/e die'  or a:lower() == 'commit toaster bath' or a:lower() == '/e commit toaster bath' or a:lower() == 'kill' or a:lower() == '/e kill' then
  30.         plr.Character.Humanoid.Health = -math.huge
  31.     end
  32.     if a:lower() == 'bring' or a:lower() == '/e bring' then
  33.         plr.Character.HumanoidRootPart.CFrame = v.Character.HumanoidRootPart.CFrame
  34.     end
  35.     if a:lower() == 'sit' or a:lower() == '/e sit' then
  36.         plr.Character.Humanoid.Sit = true
  37.     end
  38.     if string.sub(a, 1, 5) == 'chat ' or string.sub(a, 1, 8)  == '/e chat ' then
  39.         wait(0.1)
  40.         if string.sub(a, 1,5) == 'chat ' then
  41.             chat(string.sub(a,6))
  42.         end
  43.         if string.sub(a, 1,8) == '/e chat ' then
  44.             chat(string.sub(a,9))
  45.         end
  46. cooldown = true
  47. wait(1)
  48. cooldown = false
  49.     end
  50. end)
  51. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement