Run it
Copy the script and paste it into your executor.
Players = :()
UserInputService = :()
TweenService = :()
Debris = :()
player = Players.LocalPlayer
playerGui = player:()
humanoid, rootPart
lastDashTime =
connections = {}
cooldownTime =
isOnCooldown =
screenGui = .()
screenGui.Name =
screenGui.ResetOnSpawn =
screenGui.Parent = playerGui
dashButton = .()
dashButton.Name =
dashButton.Size = .(, , , )
dashButton.Position = .(, -, , -)
dashButton.BackgroundColor3 = .(, , )
dashButton.TextColor3 = .(, , )
dashButton.Text =
dashButton.Font = .Font.GothamBold
dashButton.TextSize =
dashButton.BorderSizePixel =
dashButton.BorderColor3 = .(, , )
dashButton.BackgroundTransparency =
dashButton.Parent = screenGui
(cooldownLeft)
cooldownLeft >
dashButton.Text = .(, cooldownLeft)
dashButton.BackgroundTransparency =
dashButton.Active =
dashButton.Text =
dashButton.BackgroundTransparency =
dashButton.Active =
isOnCooldown =
(char)
_, conn (connections)
conn:()
connections = {}
hum = char:()
rootp = char:()
humanoid = hum
rootPart = rootp
stateConn = hum.StateChanged:((oldState, newState)
newState == .HumanoidStateType.Landed () - lastDashTime <
hum.Health = hum.MaxHealth
)
.(connections, stateConn)
()
isOnCooldown
isOnCooldown =
lastDashTime = ()
moveDirection = humanoid.MoveDirection
moveDirection.Magnitude ==
camera = .CurrentCamera
moveDirection = (camera.CFrame.LookVector * .(, , )).Unit
moveDirection.Magnitude >
moveDirection = moveDirection.Unit
targetPosition = rootPart.Position + (moveDirection * )
bodyPosition = .()
bodyPosition.MaxForce = .(, , )
bodyPosition.Position = targetPosition
bodyPosition.P =
bodyPosition.D =
bodyPosition.Parent = rootPart
Debris:(bodyPosition, )
attach0 = .()
attach0.Name =
attach0.Position = .(, , )
attach0.Parent = rootPart
attach1 = .()
attach1.Name =
attach1.Position = .(, -, -)
attach1.Parent = rootPart
trail = .()
trail.Attachment0 = attach0
trail.Attachment1 = attach1
trail.Color = ColorSequence.({
ColorSequenceKeypoint.(, .(, , )),
ColorSequenceKeypoint.(, .(, , )),
ColorSequenceKeypoint.(, .(, , ))
})
trail.Transparency = NumberSequence.({
NumberSequenceKeypoint.(, ),
NumberSequenceKeypoint.(, ),
NumberSequenceKeypoint.(, )
})
trail.Lifetime =
trail.MinLength =
trail.FaceCamera =
trail.Parent = rootPart
Debris:(trail, )
Debris:(attach0, )
Debris:(attach1, )
effectAttach = .()
effectAttach.Position = .(, , -)
effectAttach.Parent = rootPart
pe = .()
pe.Texture =
pe.Lifetime = NumberRange.(, )
pe.Rate =
pe.SpreadAngle = .(, )
pe.Speed = NumberRange.(, )
pe.VelocityInheritance =
pe.Acceleration = .(, -, )
pe.Color = ColorSequence.(.(, , ))
pe.Transparency = NumberSequence.({
NumberSequenceKeypoint.(, ),
NumberSequenceKeypoint.(, )
})
pe.LightEmission =
pe.Parent = effectAttach
(()
pe:()
.()
pe:()
.()
pe:()
.()
pe:()
)
Debris:(effectAttach, )
(()
i = cooldownTime, , -
(i)
.()
()
)
dashButton.MouseButton1Click:(performDash)
UserInputService.InputBegan:((input, gameProcessed)
gameProcessed
input.KeyCode == .KeyCode.Q
()
)
player.CharacterAdded:(setupCharacter)
player.Character
(player.Character)
()The Dash script is a script that allows the player to dash forward allowing for more mobility educational purposes

Universal