RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"dash script didnt work"
I apologize for the inconvenience. Here's an updated dash script for you. Please make sure to replace "DashButton" with the actual name of the button you're using in your game. ```lua -- Local script local button = script.Parent.DashButton local Player = game:GetService('Players') local dashing = false local dashSpeed = 100 local normalSpeed = 16 local function dash() local player = Player.LocalPlayer local humanoid = player.Character.Humanoid if not dashing then dashing = true button.Text = 'Dash: On' humanoid.WalkSpeed = dashSpeed wait(1) -- Dash duration dashing = false button.Text = 'Dash: Off' humanoid.WalkSpeed = normalSpeed end end button.MouseButton1Click:Connect(dash) ``` This script will make the player dash for 1 second when the button is clicked. You can adjust the `dashSpeed` and `dashDuration` variables to change the speed and duration of the dash.