Run it
Copy the script and paste it into your executor.
Players = :()
RunService = :()
UserInputService = :()
player = Players.LocalPlayer
DASH_MAX_DISTANCE =
DASH_SPEED =
TRAIL_DURATION =
isDashing =
totalTraveled =
startPos =
linVel =
dashConnection =
rainbowColors = {
.(, , ),
.(, , ),
.(, , ),
.(, , ),
.(, , ),
.(, , ),
.(, , )
}
ScreenGui = .()
ScreenGui.Name =
ScreenGui.ResetOnSpawn =
ScreenGui.Parent = player:()
MainFrame = .()
MainFrame.Name =
MainFrame.Parent = ScreenGui
MainFrame.BackgroundColor3 = .(, , )
MainFrame.BorderSizePixel =
MainFrame.Position = .(, , , )
MainFrame.Size = .(, , , )
MainFrame.Active =
MainFrame.Draggable =
UICorner = .()
UICorner.CornerRadius = .(, )
UICorner.Parent = MainFrame
UIStroke = .()
UIStroke.Color = .(, , )
UIStroke.Thickness =
UIStroke.Parent = MainFrame
TitleLabel = .()
TitleLabel.Parent = MainFrame
TitleLabel.BackgroundTransparency =
TitleLabel.Size = .(, , , )
TitleLabel.Font = .Font.GothamBold
TitleLabel.Text =
TitleLabel.TextColor3 = .(, , )
TitleLabel.TextScaled =
TitleLabel.Position = .(, , , )
DashButton = .()
DashButton.Parent = MainFrame
DashButton.BackgroundColor3 = .(, , )
DashButton.BorderSizePixel =
DashButton.Position = .(, , , )
DashButton.Size = .(, , , )
DashButton.Font = .Font.GothamBold
DashButton.Text =
DashButton.TextColor3 = .(, , )
DashButton.TextScaled =
ButtonCorner = .()
ButtonCorner.CornerRadius = .(, )
ButtonCorner.Parent = DashButton
DistanceLabel = .()
DistanceLabel.Parent = MainFrame
DistanceLabel.BackgroundTransparency =
DistanceLabel.Position = .(, , , )
DistanceLabel.Size = .(, , , )
DistanceLabel.Font = .Font.GothamBold
DistanceLabel.Text =
DistanceLabel.TextColor3 = .(, , )
DistanceLabel.TextScaled =
(part)
trail = .()
trail.Color = ColorSequence.(rainbowColors)
trail.Lifetime = TRAIL_DURATION
trail.MinLength =
trail.WidthScale = NumberSequence.({NumberSequenceKeypoint.(, ), NumberSequenceKeypoint.(, )})
trail.Transparency = NumberSequence.({NumberSequenceKeypoint.(, ), NumberSequenceKeypoint.(, )})
trail.LightEmission =
trail.LightInfluence =
trail.FaceCamera =
trail.Enabled =
a0 = .(, part)
a0.Position = .(, -, )
a1 = .(, part)
a1.Position = .(, -, )
trail.Attachment0 = a0
trail.Attachment1 = a1
trail.Parent = part
.(TRAIL_DURATION + , ()
trail trail:()
a0 a0:()
a1 a1:()
)
()
isDashing =
totalTraveled =
linVel
linVel:()
linVel =
dashConnection
dashConnection:()
dashConnection =
DashButton.Text =
DashButton.BackgroundColor3 = .(, , )
DistanceLabel.Text =
DistanceLabel.TextColor3 = .(, , )
()
char = player.Character
char
hrp = char:() char:(, )
hrp
humanoid = char:()
humanoid humanoid.Health <=
isDashing
()
()
isDashing =
totalTraveled =
startPos = hrp.Position
lookVector = .CurrentCamera.CFrame.LookVector * .(, , )
lookVector.Magnitude <
lookVector = hrp.CFrame.LookVector * .(, , )
lookVector = lookVector.Unit
linVel = .()
linVel.Attachment0 = hrp:() .(, hrp)
linVel.VectorVelocity = lookVector * DASH_SPEED
linVel.MaxForce = .huge
linVel.Parent = hrp
parts = {hrp}
char:() .(parts, char.LowerTorso)
char:() .(parts, char.UpperTorso)
_, p (parts)
(p)
DashButton.Text =
DashButton.BackgroundColor3 = .(, , )
DistanceLabel.TextColor3 = .(, , )
dashConnection = RunService.Heartbeat:(()
isDashing hrp.Parent
()
currentPos = hrp.Position
totalTraveled = (currentPos - startPos).Magnitude
DistanceLabel.Text = .(, totalTraveled)
totalTraveled >= DASH_MAX_DISTANCE
()
()
)
()
DashButton.MouseButton1Click:(toggleDash)
UserInputService.InputBegan:((input, gp)
gp
input.KeyCode == .KeyCode.E
()
)
Players.PlayerRemoving:((plr)
plr == player ()
)
player.CharacterRemoving:(stopDash)
()
()Dash script To stop de dash click again the button dash

Universal