Universal Script 📌
2.0k Views
2.7k Executions

OiHub Optimize games

Universal Script 📌
crazyx0910
crazyx0910First script
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

Oihub is a script to optimize games

Updates

  1. Script edited: Update script

  2. Script edited: Update script

View Raw
-- OiHub Optimize (corrigido) - LocalScript
-- Colocar em StarterPlayerScripts

local KEY = "OiHub_Key10"
local DiscordLink = "https://discord.gg/EYSvDJGc"

local Players = game:GetService("Players")
local StarterGui = game:GetService("StarterGui")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")

local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")

-- BoolValues persistentes no player
local function ensureBool(name, default)
    local v = player:FindFirstChild(name)
    if not v then
        v = Instance.new("BoolValue")
        v.Name = name
        v.Value = default and true or false
        v.Parent = player
    end
    return v
end

local optimizedFlag = ensureBool("OiHubOptimized", false)
local closedFlag = ensureBool("OiHubClosed", false)

-- Se o usuário já fechou o GUI anteriormente com X, não recria
if closedFlag.Value then
    return
end

-- util
local function notify(txt, dur)
    pcall(function()
        StarterGui:SetCore("SendNotification", {Title="OiHub", Text = tostring(txt), Duration = dur or 3})
    end)
end


Comments

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

Tags

More universal scripts

See all
Universal Script 📌
48
1
Approved 2 hours ago
Script hub
203
1.0k
Bumped 4 hours ago

Script hub

Lunyx Hub

Script hub
120.8k
221.8k
Bumped 4 hours ago
Key System
Script hub
10.7k
202.7k
Bumped 5 hours ago

Script hub

KeylessVerified script badgeIRIDIUM HUB | #1

Script hub
33.4k
300.7k
Bumped 8 hours ago