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
Script hub
141
986
Bumped 27 minutes ago

Script hub

Lunyx Hub

Script hub
120.8k
221.2k
Bumped 46 minutes ago
Key System
Script hub
10.5k
200.6k
Bumped 1 hour ago

Script hub

KeylessVerified script badgeIRIDIUM HUB | #1

Script hub
33.3k
299.2k
Bumped 4 hours ago
Script hub
23.7k
5.3k
Bumped 4 hours ago
Key System
Paid
High Quality Offering
Universal Script 📌
305
977
Bumped 4 hours ago