Universal Script 📌
19.4k Views
981 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
Script hub
43
2
2 hours ago
Key System

Script hub

NEW Script Hub

Script hub
255
243
18 hours ago
Universal Script 📌
19.4k
178.7k
Bumped 1 hour ago
Key System
Script hub
108
7
3 hours ago
Key System
Script hub
272.4k
143.3k
Bumped 1 hour ago
Key System
Script hub
182.2k
1.8M
Bumped 3 hours ago
Key System

Script hub

#18 this week

Verified script badgeAirflow HUB

Script hub
71.3k
235.0k
Bumped 3 hours ago
Key System
Script hub
244
14
3 hours ago