Advertisement
x_zstd

Roblox Studio Left Control

Jun 23rd, 2024
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. --Put in starter chracter scripts
  2. --and make sure there is a particle called smoke
  3. local debounce = false
  4. local cas = game:GetService("ContextActionService")
  5. local plr = game.Players.LocalPlayer
  6. local char = plr.Character
  7.  
  8. local function dash()
  9. if debounce == true then return end
  10. debounce = true
  11.  
  12. local char = game.Players.LocalPlayer.Character
  13. local force = Instance.new("BodyVelocity")
  14. local Part = Instance.new ("Part")
  15. local dashp = script.Parent.smoke:Clone()
  16. local pos = char.HumanoidRootPart.Position
  17.  
  18. Part.Size = Vector3.new(1, 1, 1)
  19. Part.Transparency = 1
  20. Part.CanCollide = false
  21. Part.Anchored = true
  22. Part.Position = pos - Vector3.new(0, 5, 0)
  23. Part.Parent = workspace
  24. dashp.Parent = Part
  25. dashp.Enabled = true
  26. force.Parent = char.HumanoidRootPart
  27. force.Velocity = Vector3.new(0, -35, 0)
  28. force.MaxForce = Vector3.new(0, 40000, 0)
  29. wait(0.3)
  30. force:Destroy()
  31. Part:Destroy()
  32. debounce = false
  33. end
  34.  
  35. local button = cas:BindAction("ExtraSpeedButton", dash, true, Enum.KeyCode.LeftControl)
  36. cas:SetPosition("ExtraSpeedButton", UDim2.new(0.58, 0, 0.15, -100))
  37. cas:SetTitle("ExtraSpeedButton", "Dash")
  38. --rbxassetid://7414413373
  39.  
  40. ---https://discord.gg/AMmAXz3z
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement