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.
-- 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
- Insert a LocalScript named DashScript inside StarterPlayer > StarterCharacterScripts.
- Paste the code above and press Play.
- 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.
LocalScript
Shift-to-Sprint Script
Hold Left Shift to sprint smoothly with a subtle camera FieldOfView boost and clean speed reset on release.
Copy script →
LocalScript
Double Jump Script
Lets players jump a second time mid-air using Roblox's JumpRequest event (works on PC, mobile, and controller).
Copy script →
Script
Kill Brick Script
Instead of copying 100 scripts into 100 lava bricks, tag any part 'KillBrick' and let one clean server script handle all of them.
Copy script →
Script
Round System Script
A clean server loop that runs Intermission -> Active Round -> Winner announcement and updates a shared Status StringValue for your HUD.
Copy script →
Skip manual wiring.
Let Revix code & playtest it.
Start building freeFree to start. No card needed.
