Universal Script 📌
19.4k Views
1.1k Executions

Fly gui

Universal Script 📌
Helloboy
Helloboy10K executions
1 year 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

Yo guys my first script here on script blox it's a fly gui works nicely but it took me pretty long to make it work hope you like it give me any suggestions for what other scripts I shoudl make peace out yall

View Raw
-- Smooth Fly GUI — camera-relative movement + auto shift-lock + fixed vertical speed
-- Place this LocalScript into StarterGui

local Players = game:GetService("Players")
local UIS = game:GetService("UserInputService")
local RS = game:GetService("RunService")
local Workspace = game:GetService("Workspace")

local player = Players.LocalPlayer
local PlayerGui = player:WaitForChild("PlayerGui")
local cam = Workspace.CurrentCamera

-- GUI ------------------------------------------------
local gui = Instance.new("ScreenGui")
gui.Name = "FlyGUI"
gui.ResetOnSpawn = false
gui.Parent = PlayerGui

local toggleBtn = Instance.new("ImageButton")
toggleBtn.Size = UDim2.new(0,64,0,64)
toggleBtn.Position = UDim2.new(0.04,0,0.78,0)
toggleBtn.BackgroundColor3 = Color3.fromRGB(98,72,255)
toggleBtn.Image = "rbxassetid://3926305904"
toggleBtn.ImageRectOffset = Vector2.new(364,324)
toggleBtn.ImageRectSize = Vector2.new(36,36)
toggleBtn.AutoButtonColor = true
toggleBtn.Active = true
toggleBtn.Draggable = true
toggleBtn.Parent = gui
Instance.new("UICorner", toggleBtn).CornerRadius = UDim.new(1,0)
do local s = Instance.new("UIStroke", toggleBtn); s.Thickness = 2; s.Color = Color3.fromRGB(255,255,255) end

local sliderFrame = Instance.new("Frame")
sliderFrame.Size = UDim2.new(0,180,0,44)
sliderFrame.Position = UDim2.new(0,74,0,-10)
sliderFrame.BackgroundColor3 = Color3.fromRGB(40,40,40)
sliderFrame.Visible = false
sliderFrame.Parent = toggleBtn
Instance.new("UICorner", sliderFrame).CornerRadius = UDim.new(0.5,0)



Comments

3
Log in to join the conversation. Login
56834's profile picture
568341 year ago

↑ ↓ Make it draggable

1
56834's profile picture
568341 year ago

Can you make this script loadstring?

1

[deleted]

Replying to a deleted comment
Helloboy's profile picture
HelloboyUploader1 year ago

Yes and?

1

Tags

More universal scripts

See all
Universal Script 📌
70.7k
7.6k
Bumped 23 minutes ago
Key System
Script hub
5.6M
1.2M
Bumped 1 hour ago
Key System
Script hub
199.0k
2.2M
Bumped 4 hours ago
Key System

Script hub

#23 this week

Verified script badgeAirflow HUB

Script hub
22.4k
4.5k
Bumped 6 hours ago
Key System
Paid
High Quality Offering
Script hub
3.6M
883.6k
Bumped 8 hours ago
Key System

Script hub

Hall of Fame #6

Verified script badgeFlow Hub | 73 Games | Updated

Script hub
13.5k
25.6k
Bumped 9 hours ago
Script hub
223
488
Approved 9 hours ago
Script hub
2.0M
2.4M
Bumped 9 hours ago
Key System