Universal Script 📌
658 Views
1.1k Executions

Fly script 2 0912

Universal Script 📌
Lightnin_700
Lightnin_700First script
10 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

...

View Raw
-- Services
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")

-- Player references
local player = Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local humanoid = char:WaitForChild("Humanoid")
local root = char:WaitForChild("HumanoidRootPart")

-- GUI
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "FlyToggleUI"
screenGui.ResetOnSpawn = false
screenGui.Parent = player:WaitForChild("PlayerGui")

local button = Instance.new("TextButton")
button.Name = "ToggleButton"
button.Size = UDim2.new(0, 30, 0, 30)
button.Position = UDim2.new(0, 20, 0, 100)
button.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
button.Text = "🦇"  -- Bat emoji
button.TextColor3 = Color3.new(1, 1, 1)
button.Font = Enum.Font.SourceSansBold
button.TextScaled = true
button.Active = true
button.Draggable = true
button.Parent = screenGui

-- Flying variables
local flying = false
local flyConnection
local flyBV, flyBG
local flySpeed = 100
local hoverAmplitude = 2
local hoverSpeed = 2
local hoverTime = 0

-- Update references on respawn
local function updateCharacter(newChar)


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Script hub
158.0k
496.6k
Bumped 46 minutes ago
Key System

Script hub

Hall of Fame #6

Verified script badgeAcro Hub OP SCRIPT

Universal Script 📌
597.6k
4.2M
Bumped 2 hours ago
Script hub
50.9k
320.4k
Bumped 3 hours ago

Script hub

Nameless Admin

Script hub
176.8k
1.6M
Bumped 5 hours ago
Key System
Script hub
46.8k
11.6k
Bumped 7 hours ago
Key System
Paid