
2.0k Views
2.7k Executions
OiHub Optimize games
Universal Script 📌
crazyx0910First script
1 year ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
Oihub is a script to optimize games
Updates
Script edited: Update script
Script edited: Update script
-- 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
0Log in to join the conversation. Login
No comments yet. Be the first!







