
650 Views
394 Executions
Fly made by chatgpt
Universal Script 📌
pacanhelagFirst script
8 months 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
Ia
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local root = character:WaitForChild("HumanoidRootPart")
local flying = false
local speed = 50
local bodyVelocity
local bodyGyro
-- Ativar/Desativar com tecla F
local UserInputService = game:GetService("UserInputService")
UserInputService.InputBegan:Connect(function(input, gameProcessed)
if gameProcessed then return end
if input.KeyCode == Enum.KeyCode.F then
flying = not flying
if flying then
-- Criar forças
bodyVelocity = Instance.new("BodyVelocity")
bodyVelocity.MaxForce = Vector3.new(1,1,1) * 100000
bodyVelocity.Velocity = Vector3.new(0,0,0)
bodyVelocity.Parent = root
bodyGyro = Instance.new("BodyGyro")
bodyGyro.MaxTorque = Vector3.new(1,1,1) * 100000
bodyGyro.CFrame = root.CFrame
bodyGyro.Parent = root
humanoid.PlatformStand = true
else
-- Remover forças
if bodyVelocity then bodyVelocity:Destroy() end
if bodyGyro then bodyGyro:Destroy() end
humanoid.PlatformStand = false
end









Need keyboard