Advertisement
Hex4rr

annoying walk script

Jun 19th, 2020
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. plr = game.Players.LocalPlayer
  2. mouse = plr:GetMouse()
  3. mouse.KeyDown:connect(function(key)
  4.  
  5. if key == "w" then
  6. game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer("I am moving forwards.",
  7. "All")
  8. end
  9. end)
  10.  
  11. mouse = plr:GetMouse()
  12. mouse.KeyDown:connect(function(key)
  13.  
  14. if key == "a" then
  15. game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer("I am moving to the left.",
  16. "All")
  17. end
  18. end)
  19.  
  20. mouse = plr:GetMouse()
  21. mouse.KeyDown:connect(function(key)
  22.  
  23. if key == "s" then
  24. game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer("I am moving backwards.",
  25. "All")
  26. end
  27. end)
  28.  
  29. mouse = plr:GetMouse()
  30. mouse.KeyDown:connect(function(key)
  31.  
  32. if key == "d" then
  33. game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer("I am moving to the right.",
  34. "All")
  35. end
  36. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement