Universal Script 📌
39.6k Views
331 Executions

Toggle UI script for orion

Universal Script 📌
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

This is A toggle ui script for Orion!

Updates

  1. Script edited: Update script

  2. Script edited: Update script

View Raw
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "ScreenGui"
ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
ScreenGui.ResetOnSpawn = false

local Toggle = Instance.new("TextButton")
Toggle.Name = "Toggle"
Toggle.Parent = ScreenGui
Toggle.BackgroundColor3 = Color3.fromRGB(255, 0, 0)  -- Start with red (off)
Toggle.BackgroundTransparency = 0.5  -- Set the button transparency to 0.5
Toggle.Position = UDim2.new(0, 0, 0.454706937, 0)
Toggle.Size = UDim2.new(0, 50, 0, 50)  -- Smaller size for a compact circular button
Toggle.Font = Enum.Font.SourceSans
Toggle.Text = "Close"  -- Start with "Close"
Toggle.TextColor3 = Color3.fromRGB(248, 248, 248)
Toggle.TextSize = 18.000  -- Adjust text size for smaller button
Toggle.Draggable = true

local Corner = Instance.new("UICorner")
Corner.CornerRadius = UDim.new(0.5, 0)  -- Make the button circular
Corner.Parent = Toggle

local isOn = false  -- Initial state is off

-- Function to handle the "On" state
local function onButtonClicked()
    -- Add your code for what should happen when the button is in the "On" state
    if gethui():FindFirstChild("Orion") then
        gethui().Orion.Enabled = not gethui().Orion.Enabled
    end
end

-- Function to handle the "Off" state
local function offButtonClicked()
    -- Add your code for what should happen when the button is in the "Off" state
    if gethui():FindFirstChild("Orion") then
        gethui().Orion.Enabled = not gethui().Orion.Enabled
    end
end



Comments

3
Log in to join the conversation. Login
PlayerExploits's profile picture
PlayerExploitsUploader2 years ago(edited)

What is fluent for next?

2
Rocky_2025's profile picture
Rocky_20251 year ago

This is a funny script i love that

1
Jamjam0139's profile picture
Jamjam01392 years ago(edited)

Make fluent for next

1

More universal scripts

See all
Script hub
23.3k
4.9k
Bumped 1 hour ago
Key System
Paid
High Quality Offering
Script hub
4.1M
544.6k
Bumped 1 hour ago
Key System

Script hub

Hall of Fame #3

Verified script badgeOverflow #1 *OP*

Universal Script 📌
13.9k
55.0k
Bumped 6 hours ago
High Quality Offering
Script hub
2.9M
974.1k
Bumped 6 hours ago
Key System
Universal Script 📌
9.2k
210.0k
Bumped 6 hours ago
Script hub
86.7k
363.1k
Bumped 6 hours ago
Key System
Universal Script 📌
9.0k
146.8k
Bumped 7 hours ago
High Quality Offering
Universal Script 📌
11.4k
7.2k
Bumped 8 hours ago
High Quality Offering