Run it
Copy the script and paste it into your executor.
Players = :()
UserInputService = :()
ReplicatedStorage = :()
player = Players.LocalPlayer
character = player.Character player.CharacterAdded:()
mouse = player:()
mainFrame = .Parent.MainFrame
toggleButton = mainFrame.ToggleButton
statusLabel = mainFrame.StatusLabel
flying =
toggleFlightEvent = ReplicatedStorage:()
()
flying
statusLabel.Text =
statusLabel.TextColor3 = .(, , )
toggleButton.Text =
statusLabel.Text =
statusLabel.TextColor3 = .(, , )
toggleButton.Text =
toggleButton.MouseButton1Click:(()
flying = flying
()
toggleFlightEvent:(flying)
)
speedLabel = mainFrame:()
speedLabel
:().RenderStepped:(()
root = character:()
root flying
speed = .(root.AssemblyLinearVelocity.Magnitude)
speedLabel.Text = .. speed ..
speedLabel.Text =
)
ReplicatedStorage = :()
toggleFlightEvent = .()
toggleFlightEvent.Name =
toggleFlightEvent.Parent = ReplicatedStorage
FLIGHT_SPEED =
toggleFlightEvent.OnServerEvent:((player, isFlying)
character = player.Character
character
root = character:()
humanoid = character:()
root humanoid
isFlying
humanoid:(.HumanoidStateType.Physics)
attachment = root:() .()
attachment.Name =
attachment.Parent = root
linearVelocity = root:() .()
linearVelocity.Name =
linearVelocity.Attachment0 = attachment
linearVelocity.RelativeTo = .ActuatorRelativeTo.World
linearVelocity.MaxForce = .huge
linearVelocity.VectorVelocity = .(, , )
linearVelocity.Parent = root
.(()
isFlying root root.Parent
moveDirection = humanoid.MoveDirection
moveDirection.Magnitude >
linearVelocity.VectorVelocity = moveDirection * FLIGHT_SPEED
linearVelocity.VectorVelocity = .(, , )
.()
)
root:()
root.FlightVelocity:()
root:()
root.FlightAttachment:()
humanoid:(.HumanoidStateType.GettingUp)
)
Players = :()
RunService = :()
UserInputService = :()
player = Players.LocalPlayer
character = player.Character player.CharacterAdded:()
root = character:()
humanoid = character:()
mainFrame = .Parent.MainFrame
toggleButton = mainFrame.ToggleButton
statusLabel = mainFrame.StatusLabel
isFlying =
flySpeed =
dsyncIntensity =
camera = .CurrentCamera
toggleButton.MouseButton1Click:(()
isFlying = isFlying
isFlying
statusLabel.Text =
statusLabel.TextColor3 = .(, , )
toggleButton.Text =
humanoid.PlatformStand =
statusLabel.Text =
statusLabel.TextColor3 = .(, , )
toggleButton.Text =
humanoid.PlatformStand =
root.AssemblyLinearVelocity = .(, , )
)
RunService.RenderStepped:(()
isFlying root
moveDirection = .(, , )
UserInputService:(.KeyCode.W)
moveDirection = moveDirection + camera.CFrame.LookVector
UserInputService:(.KeyCode.S)
moveDirection = moveDirection - camera.CFrame.LookVector
UserInputService:(.KeyCode.A)
moveDirection = moveDirection - camera.CFrame.RightVector
UserInputService:(.KeyCode.D)
moveDirection = moveDirection + camera.CFrame.RightVector
moveDirection.Magnitude >
moveDirection = moveDirection.Unit
root.CFrame = root.CFrame + (moveDirection * flySpeed * )
() % <
root.AssemblyLinearVelocity = .(dsyncIntensity, dsyncIntensity, dsyncIntensity)
root.AssemblyLinearVelocity = .(-dsyncIntensity, -dsyncIntensity, -dsyncIntensity)
)
player.CharacterAdded:((newChar)
character = newChar
root = newChar:()
humanoid = newChar:()
isFlying =
)
Flight and Desync

Universal