Run it
Copy the script and paste it into your executor.
Players = :()
RunService = :()
UserInputService = :()
player = Players.LocalPlayer
GLIDE_SPEED =
FALL_SPEED = -
TURN_POWER =
GLIDE_ANIM_ID =
LEAN_ANGLE = .(-)
GLIDE_HIPHEIGHT =
char, humanoid, root
gliding =
bodyVel, bodyGyro
glideTrack
defaultHipHeight
()
gliding =
glideTrack glideTrack:()
bodyVel bodyVel:() bodyVel =
bodyGyro bodyGyro:() bodyGyro =
humanoid humanoid.HipHeight = defaultHipHeight
()
gliding humanoid humanoid.FloorMaterial ~= .Material.Air
gliding =
bodyVel = .()
bodyVel.MaxForce = .(, , )
bodyVel.Parent = root
bodyGyro = .()
bodyGyro.MaxTorque = .(, , )
bodyGyro.P = TURN_POWER
bodyGyro.Parent = root
humanoid.HipHeight = GLIDE_HIPHEIGHT
glideTrack glideTrack:()
()
gliding
()
()
(character)
()
char = character
humanoid = char:()
root = char:()
defaultHipHeight = humanoid.HipHeight
anim = .()
anim.AnimationId = GLIDE_ANIM_ID
glideTrack = humanoid:(anim)
glideTrack.Looped =
glideTrack.Priority = .AnimationPriority.Action
player.Character
(player.Character)
player.CharacterAdded:(setupCharacter)
RunService.RenderStepped:(()
gliding humanoid
humanoid.FloorMaterial ~= .Material.Air
()
moveDir = humanoid.MoveDirection
moveDir.Magnitude <
moveDir = root.CFrame.LookVector
bodyVel.Velocity = .(
moveDir.X * GLIDE_SPEED,
FALL_SPEED,
moveDir.Z * GLIDE_SPEED
)
bodyGyro.CFrame =
.(root.Position, root.Position + moveDir)
* .(LEAN_ANGLE, , )
)
gui = .(, player:())
gui.Name =
gui.ResetOnSpawn =
button = .(, gui)
button.Size = .(, )
button.Position = .(, )
button.Text =
button.TextSize =
button.Font = .Font.GothamBold
button.BackgroundColor3 = .(, , )
button.TextColor3 = .(, , )
button.BorderSizePixel =
button.Active =
button.Draggable =
corner = .(, button)
corner.CornerRadius = .(, )
button.MouseButton1Click:(()
()
button.BackgroundColor3 = gliding
.(, , )
.(, , )
)
UserInputService.InputBegan:((input, gpe)
gpe
input.KeyCode == .KeyCode.F
()
button.BackgroundColor3 = gliding
.(, , )
.(, , )
)
Universal