Description

local Players = game:GetService("Players")

local UserInputService = game:GetService("UserInputService")

local RunService = game:GetService("RunService")

local player = Players.LocalPlayer

local character = player.Character or player.CharacterAdded:Wait()

local humanoid = character:WaitForChild("Humanoid")

local root = character:WaitForChild("HumanoidRootPart")

-- Speed 100

humanoid.WalkSpeed = 100

-- Infinite jump

UserInputService.JumpRequest:Connect(function()

humanoid:ChangeState(Enum.HumanoidStateType.Jumping)

end)

-- Fly

local flying = true

local flySpeed = 100

RunService.RenderStepped:Connect(function()

if flying and root and humanoid then

local direction = humanoid.MoveDirection

if direction.Magnitude > 0 then

root.AssemblyLinearVelocity = direction * flySpeed

else

root.AssemblyLinearVelocity = Vector3.zero

end

end

end)

Views
447
Likes
1
Dislikes
0
Posted
4w ago
Key System
No
Mobile
Not tested