Start building

Roblox Dash Ability Script (Q-Key LinearVelocity + Cooldown)

Press Q to burst forward smoothly using Roblox's modern LinearVelocity constraint with a 1.5-second cooldown.

Type: LocalScriptExplorer: StarterPlayer > StarterCharacterScriptsLevel: Intermediate
LocalScriptStarterPlayer > StarterCharacterScripts
-- LocalScript in StarterCharacterScripts
local UserInputService = game:GetService("UserInputService")

local character = script.Parent
local root = character:WaitForChild("HumanoidRootPart") :: BasePart
local attachment = root:WaitForChild("RootAttachment") :: Attachment

local DASH_SPEED = 65
local DASH_TIME = 0.2
local COOLDOWN = 1.5
local lastDash = 0

UserInputService.InputBegan:Connect(function(input, gp)
	if gp or input.KeyCode ~= Enum.KeyCode.Q then return end
	if os.clock() - lastDash < COOLDOWN then return end
	lastDash = os.clock()

	local lv = Instance.new("LinearVelocity")
	lv.Attachment0 = attachment
	lv.MaxForce = 40000
	lv.VectorVelocity = root.CFrame.LookVector * DASH_SPEED
	lv.Parent = root

	task.delay(DASH_TIME, function() lv:Destroy() end)
end)

How to install in Studio

  1. Insert a LocalScript named DashScript inside StarterPlayer > StarterCharacterScripts.
  2. Paste the code above and press Play.
  3. Press Q while facing any direction to perform a clean forward dash.

Tips & customization

  • Swap `root.CFrame.LookVector` for `humanoid.MoveDirection` to allow 8-way directional side/back dashes.

Common questions.

Why LinearVelocity instead of BodyVelocity?

BodyVelocity is deprecated by Roblox; LinearVelocity is the modern physics constraint with cleaner force limits.

More free Luau scripts.

All 16 scripts

Skip manual wiring.
Let Revix code & playtest it.

Start building free

Free to start. No card needed.