
7.1k Views
244 Executions
Tutu tower
Universal Script ๐
Arthur123First script
1 year ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
Universal
local Fly = {}
local function FlyV3()
local flying = false
local speed = 50
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local bodyVelocity = Instance.new("BodyVelocity")
bodyVelocity.Velocity = Vector3.new(0,0,0)
bodyVelocity.MaxForce = Vector3.new(0,0,0)
bodyVelocity.Parent = character.HumanoidRootPart
function toggleFly()
flying = not flying
if flying then
bodyVelocity.MaxForce = Vector3.new(1e5, 1e5, 1e5)
humanoid.PlatformStand = true
while flying do
local move = Vector3.new()
if game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.W) then
move = move + workspace.CurrentCamera.CFrame.LookVector
end
if game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.S) then
move = move - workspace.CurrentCamera.CFrame.LookVector
end
if game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.A) then
move = move - workspace.CurrentCamera.CFrame.RightVector
end
if game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.D) then
move = move + workspace.CurrentCamera.CFrame.RightVector
end
bodyVelocity.Velocity = move.Unit * speed
wait()
end
else
bodyVelocity.MaxForce = Vector3.new()
bodyVelocity.Velocity = Vector3.new()
humanoid.PlatformStand = false
Comments
0Log in to join the conversation. Login
No comments yet. Be the first!







