Advertisement
Aeyao

LOCAL M 32WER9CSYF9NE0 I 08EWUANYUFY N

Jul 23rd, 2018
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. local p = game.Players:WaitForChild("asbuff")
  2. local c = p.Character
  3. local m = p:GetMouse()
  4. local ass = workspace.Terrain:WaitForChild("MINECRAFTASBUFF")
  5. local cam = workspace.CurrentCamera
  6. local sprint = false
  7. m.KeyDown:connect(function(k)
  8. if k == "0" then
  9. sprint = true
  10. end
  11. end)
  12. m.KeyUp:connect(function(k)
  13. if k == "0" then
  14. sprint = false
  15. end
  16. end)
  17.  
  18. m.Button2Down:connect(function()
  19. ass:FireServer("placeblock",{cam.CFrame,m.Hit})
  20. end)
  21.  
  22. m.Button1Down:connect(function()
  23. ass:FireServer("removeblock",{cam.CFrame,m.Hit})
  24. end)
  25. m.KeyDown:connect(function(k)
  26. if k == "q" then
  27. ass:FireServer("openinv",{cam.CFrame,m.Hit})
  28. end
  29. end)
  30. m.KeyUp:connect(function(k)
  31. if k == "q" then
  32. ass:FireServer("closeinv",{cam.CFrame,m.Hit})
  33. end
  34. end)
  35.  
  36. game:GetService("RunService").RenderStepped:connect(function()
  37. if sprint then
  38. c.Humanoid.WalkSpeed = 30
  39. else
  40. c.Humanoid.WalkSpeed = 18
  41. end
  42. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement