Universal Script 📌
2.4k Views
42 Executions

Cool toggle gui idk

Universal Script 📌
JeffFNF
JeffFNFPublished 10
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

Just a toggle and cool gui toggle If you see the print("On") or print("Off") you can Change the code :)

View Raw
local TweenService = game:GetService("TweenService")
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local Player = Players.LocalPlayer
local PlayerGui = Player:WaitForChild("PlayerGui")

-- Wait for PlayerGui to be ready
if not PlayerGui then
	Player.CharacterAdded:Wait()
	PlayerGui = Player:WaitForChild("PlayerGui")
end

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

-- Create Main Frame
local main = Instance.new("Frame")
main.Size = UDim2.new(0, 150, 0, 50)
main.Position = UDim2.new(0.5, -75, 0.5, -25)
main.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
main.BorderSizePixel = 0
main.AnchorPoint = Vector2.new(0.5, 0.5)
main.Active = true -- Required for draggable
main.Draggable = true -- Makes the frame draggable
main.Parent = gui

-- Add corner to the main frame
local mainCorner = Instance.new("UICorner")
mainCorner.CornerRadius = UDim.new(0, 8)
mainCorner.Parent = main

-- Create Label
local label = Instance.new("TextLabel")
label.Size = UDim2.new(1, -60, 1, 0)
label.Position = UDim2.new(0, 10, 0, 0)
label.BackgroundTransparency = 1
label.Text = "Toggle"


Comments

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

Tags

More universal scripts

See all
Script hub
52
0
Approved 38 minutes ago
Universal Script 📌
534
699
Bumped 57 minutes ago
Script hub
1.6M
2.1M
Bumped 8 hours ago
Key System

Script hub

#12 this week

Verified script badgeSnowy Hub 500+ Games & 25600+ Features

Script hub
269.3k
121.2k
Bumped 9 hours ago
Key System
Script hub
171.5k
1.4M
Bumped 12 hours ago
Key System
Script hub
16.8k
3.3k
Bumped 14 hours ago
Key System
Paid
Script hub
17.5k
89.5k
Bumped 14 hours ago