
6.6k Views
512 Executions
Stupid float gui
Universal Script ๐
ryanscreationzPublished 10
2 years ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
Eme
Updates
Script edited: Create script
--// 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"









Usa el guiรณn en tsb
COMO QUE USA O SCRIPT