Universal Script 📌
39.6k Views
321 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
Universal Script 📌
19
1
Approved 26 minutes ago
Universal Script 📌
21
5
Approved 28 minutes ago
Universal Script 📌
13
2
Approved 31 minutes ago
Universal Script 📌
20
0
Approved 36 minutes ago
Paid
Universal Script 📌
15
3
Approved 44 minutes ago
Universal Script 📌
20
1
Approved 52 minutes ago