Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Put in starter chracter scripts
- --and make sure there is a particle called smoke
- local debounce = false
- local cas = game:GetService("ContextActionService")
- local plr = game.Players.LocalPlayer
- local char = plr.Character
- local function dash()
- if debounce == true then return end
- debounce = true
- local char = game.Players.LocalPlayer.Character
- local force = Instance.new("BodyVelocity")
- local Part = Instance.new ("Part")
- local dashp = script.Parent.smoke:Clone()
- local pos = char.HumanoidRootPart.Position
- Part.Size = Vector3.new(1, 1, 1)
- Part.Transparency = 1
- Part.CanCollide = false
- Part.Anchored = true
- Part.Position = pos - Vector3.new(0, 5, 0)
- Part.Parent = workspace
- dashp.Parent = Part
- dashp.Enabled = true
- force.Parent = char.HumanoidRootPart
- force.Velocity = Vector3.new(0, -35, 0)
- force.MaxForce = Vector3.new(0, 40000, 0)
- wait(0.3)
- force:Destroy()
- Part:Destroy()
- debounce = false
- end
- local button = cas:BindAction("ExtraSpeedButton", dash, true, Enum.KeyCode.LeftControl)
- cas:SetPosition("ExtraSpeedButton", UDim2.new(0.58, 0, 0.15, -100))
- cas:SetTitle("ExtraSpeedButton", "Dash")
- --rbxassetid://7414413373
- ---https://discord.gg/AMmAXz3z
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement