Universal Script 📌
1.8k Views
3.6k Executions

CookFly V1

Universal Script 📌
HyperxQuadcast2
HyperxQuadcast2First script
7 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

CookFly V1 — Features: 1. Fly — fly freely in all directions following the camera angle 2. ENABLE / DISABLE — toggle button to turn fly on/off 3. Speed Input — type any number (1–10000), press Enter or click outside to apply instantly 4. 6-directional movement — W/A/S/D to fly, Space to go up, LCtrl to go down 5. Draggable GUI — window can be dragged anywhere on screen 6. Minimize — - button collapses the GUI down to just the title bar 7. Close — X button disables fly + removes GUI from screen entirely 8. Auto respawn handler — die/respawn, script resets automatically without crashing 9. Input validation — type letters or invalid characters → automatically reverts to previous speed value

View Raw
-- CookFly V1 by cook45
-- LocalScript → StarterPlayerScripts

local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")

local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local rootPart = character:WaitForChild("HumanoidRootPart")

local flyEnabled = false
local flySpeed = 50
local bodyVelocity = nil
local bodyGyro = nil
local connection = nil

local screenGui = Instance.new("ScreenGui")
screenGui.Name = "CookFly V1"
screenGui.ResetOnSpawn = false
screenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
screenGui.Parent = player:WaitForChild("PlayerGui")

local mainFrame = Instance.new("Frame")
mainFrame.Size = UDim2.new(0, 220, 0, 145)
mainFrame.Position = UDim2.new(0.5, -110, 0.3, 0)
mainFrame.BackgroundColor3 = Color3.fromRGB(43, 43, 43)
mainFrame.BorderSizePixel = 0
mainFrame.Active = true
mainFrame.Draggable = true
mainFrame.Parent = screenGui
Instance.new("UICorner", mainFrame).CornerRadius = UDim.new(0, 5)

local titleBar = Instance.new("Frame")
titleBar.Size = UDim2.new(1, 0, 0, 30)
titleBar.BackgroundColor3 = Color3.fromRGB(20, 20, 46)
titleBar.BorderSizePixel = 0
titleBar.Parent = mainFrame
Instance.new("UICorner", titleBar).CornerRadius = UDim.new(0, 5)


Comments

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

Tags

More universal scripts

See all
Universal Script 📌
2
0
Approved 4 minutes ago
Script hub
47.4k
220.0k
Bumped 15 minutes ago

Script hub

Sp3arParvus

Universal Script 📌
36
0
Approved 1 hour ago
Universal Script 📌
16.1k
103.2k
Bumped 2 hours ago
Key System
Universal Script 📌
3.7k
32.9k
Bumped 4 hours ago
Script hub
119.9k
201.4k
Bumped 7 hours ago
Key System