Parameters
Returns
void
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
setreadonly(t: table, readonly: boolean): ()
| Parameter | Type | Description |
|---|---|---|
t | table | The table to lock or unlock. |
readonly | boolean | true locks the table, false unlocks it. |
void
setreadonly(getrawmetatable(game), false)
local updatefps = game:GetService("ReplicatedStorage"):WaitForChild("UpdateFPS")
local prev = getidentity()
setidentity(3)
local mt = getrawmetatable(game)
local oldNamecall = mt.__namecall
setreadonly(mt, false)
mt.__namecall = newcclosure(function(self, ...)
-- block FireServer on updatefps from the game's own scripts and let seliware through
if self == updatefps and not checkcaller() then
local method = getnamecallmethod()
if method == "FireServer" or method == "fireServer" then
return
end
end
return oldNamecall(self, ...)
end)
setreadonly(mt, true)
setidentity(prev)
makereadonly or makewritable.