Run it
Copy the script and paste it into your executor.
player = .Players.LocalPlayer
character = player.Character player.CharacterAdded:()
humanoid = character:()
rootPart = character:()
UserInputService = :()
RunService = :()
Players = :()
StarterGui = :()
flying =
speed =
moveDirection = .(,,)
keys = {
W = ,
A = ,
S = ,
D = ,
Space = ,
LeftControl = ,
}
bodyVelocity = .()
bodyVelocity.MaxForce = .(,,)
bodyVelocity.Velocity = .(,,)
bodyVelocity.Parent = rootPart
()
camCFrame = .CurrentCamera.CFrame
forward = camCFrame.LookVector
right = camCFrame.RightVector
up = .(,,)
dir = .(,,)
keys.W dir = dir + forward
keys.S dir = dir - forward
keys.A dir = dir - right
keys.D dir = dir + right
keys.Space dir = dir + up
keys.LeftControl dir = dir - up
dir.Magnitude >
moveDirection = dir.Unit
moveDirection = .(,,)
UserInputService.InputBegan:((input, gameProcessed)
gameProcessed
input.UserInputType == .UserInputType.Keyboard
key = input.KeyCode.Name
keys[key] ~=
keys[key] =
()
)
UserInputService.InputEnded:((input, gameProcessed)
gameProcessed
input.UserInputType == .UserInputType.Keyboard
key = input.KeyCode.Name
keys[key] ~=
keys[key] =
()
)
UserInputService.TouchEnabled
screenGui = .()
screenGui.Name =
screenGui.Parent = player:()
(name, pos, text)
btn = .()
btn.Name = name
btn.Size = .(, , , )
btn.Position = pos
btn.BackgroundColor3 = .(, , )
btn.BackgroundTransparency =
btn.TextColor3 = .(,,)
btn.Text = text
btn.Parent = screenGui
btn.AutoButtonColor =
btn.Font = .Font.SourceSansBold
btn.TextScaled =
btn
btnW = (, .(, , , ), )
btnA = (, .(, , , ), )
btnS = (, .(, , , ), )
btnD = (, .(, , , ), )
btnUp = (, .(, , , ), )
btnDown = (, .(, , , ), )
(btn, key)
btn.TouchStarted:(()
keys[key] =
()
)
btn.TouchEnded:(()
keys[key] =
()
)
btn.TouchMoved:((touch)
pos = touch.Position
absPos = btn.AbsolutePosition
size = btn.AbsoluteSize
pos.X < absPos.X pos.X > absPos.X + size.X pos.Y < absPos.Y pos.Y > absPos.Y + size.Y
keys[key] =
()
)
(btnW, )
(btnA, )
(btnS, )
(btnD, )
(btnUp, )
(btnDown, )
RunService.RenderStepped:(()
flying
bodyVelocity.Velocity = moveDirection * speed
humanoid.PlatformStand =
bodyVelocity.Velocity = .(,,)
humanoid.PlatformStand =
)
Plays a animation thats fe fe animation