Universal Script 📌
650 Views
394 Executions

Fly made by chatgpt

Universal Script 📌
pacanhelag
pacanhelagFirst script
8 months ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Ia

View Raw
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


Comments

1
Log in to join the conversation. Login
pacanhelag's profile picture
pacanhelagUploader8 months ago

Need keyboard

1

More universal scripts

See all
Script hub
8
1
Approved 11 minutes ago
Universal Script 📌
33
1
Approved 1 hour ago
Script hub
197
1.0k
Bumped 3 hours ago

Script hub

Lunyx Hub

Script hub
120.8k
221.8k
Bumped 3 hours ago
Key System
Script hub
10.7k
202.7k
Bumped 4 hours ago

Script hub

KeylessVerified script badgeIRIDIUM HUB | #1

Script hub
33.3k
300.7k
Bumped 7 hours ago