Advertisement
x_zstd

Silly Dash (Xbox bind)

Jun 23rd, 2024
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. local key = "ButtonR1" -- Keybind
  2. local u = game:GetService("UserInputService")
  3. u.InputBegan:Connect(function(input)
  4. if input.KeyCode == Enum.KeyCode[key] then
  5. local args = {
  6. [1]="dash"
  7. }
  8. game:GetService("Players").LocalPlayer.Character.OYS.ButtonPressed:FireServer(unpack(args))
  9. local force = Instance.new("BodyVelocity")
  10. force.Parent = Game.Players.LocalPlayer.Character.HumanoidRootPart
  11. force.Velocity = Vector3.new(0, -16, 0)
  12. force.MaxForce = Vector3.new(0, 0, 0)
  13. game:GetService("ReplicatedStorage"):WaitForChild("Events"):WaitForChild("Block"):FireServer()
  14. local args = {
  15. [1]="f"
  16. }
  17. game:GetService("Players").LocalPlayer.Character.OYS.ButtonPressed:FireServer(unpack(args))
  18. force.MaxForce = Vector3.new(0, 40000, 0)
  19. wait(0.1)
  20. force:Destroy()
  21. end
  22. end)
  23. local u2 = game:GetService("UserInputService")
  24. u.InputBegan:Connect(function(input)
  25. if input.KeyCode == Enum.KeyCode.LeftControl then
  26. local args = {
  27. [1]="dash"
  28. }
  29. game:GetService("Players").LocalPlayer.Character.OYS.ButtonPressed:FireServer(unpack(args))
  30. local force = Instance.new("BodyVelocity")
  31. force.Parent = Game.Players.LocalPlayer.Character.HumanoidRootPart
  32. force.Velocity = Vector3.new(0, -16, 0)
  33. force.MaxForce = Vector3.new(0, 0, 0)
  34. force.MaxForce = Vector3.new(0, 40000, 0)
  35. wait(0.1)
  36. force:Destroy()
  37. end
  38. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement