Universal Script 📌
11.6k Views
855 Executions

Universal float gui

Universal Script 📌
ryanscreationz
ryanscreationzPublished 10
2 years 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

Lacaca

Updates

  1. Script edited: Update script

View Raw
--// Create GUI Elements
local ScreenGui = Instance.new("ScreenGui")
local FloatButton = Instance.new("TextButton")
local DragFrame = Instance.new("Frame")

--// Set GUI Properties
ScreenGui.Name = "FloatGui"
ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")

DragFrame.Name = "DragFrame"
DragFrame.Parent = ScreenGui
DragFrame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
DragFrame.BorderSizePixel = 0
DragFrame.Size = UDim2.new(0, 200, 0, 80)
DragFrame.Position = UDim2.new(0.4, 0, 0.4, 0)
DragFrame.Active = true
DragFrame.Draggable = true

FloatButton.Name = "FloatButton"
FloatButton.Parent = DragFrame
FloatButton.BackgroundColor3 = Color3.fromRGB(100, 100, 255)
FloatButton.Size = UDim2.new(1, 0, 0.5, 0)
FloatButton.Position = UDim2.new(0, 0, 0, 0)
FloatButton.Font = Enum.Font.SourceSans
FloatButton.Text = "Float: OFF"
FloatButton.TextColor3 = Color3.fromRGB(255, 255, 255)
FloatButton.TextSize = 20

--// Variables
local isFloating = false
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
local floatForce
local rotateConnection

--// Toggle Float Function
local function toggleFloat()
    isFloating = not isFloating
    FloatButton.Text = isFloating and "Float: ON" or "Float: OFF"


Comments

1
Log in to join the conversation. Login
Trollismemangomamgo's profile picture
Trollismemangomamgo1 year ago

Good script

1

More universal scripts

See all
Script hub
178.9k
1.7M
Bumped 5 hours ago
Key System
Universal Script 📌
9.2k
31.9k
Bumped 6 hours ago
Script hub
49.9k
12.4k
Bumped 7 hours ago
Key System
Paid
Script hub
5.5M
1.1M
Bumped 11 hours ago
Key System
Script hub
20.7k
4.0k
Bumped 12 hours ago
Key System
Paid
Universal Script 📌
767
233
Approved 18 hours ago
Universal Script 📌
673
2.9k
Approved 18 hours ago