local coreCall do local MAXRETRIES = 8 local StarterGui = game:GetService(‘StarterGui’)…
- User
local coreCall do local MAX_RETRIES = 8
local StarterGui = game:GetService(‘StarterGui’) local RunService = game:GetService(‘RunService’)
function coreCall(method, …) local result = {} for retries = 1, MAX_RETRIES do result = {pcall(StarterGui[method], StarterGui, …)} if result[1] then break end RunService.Stepped:Wait() end return unpack(result) end end
coreCall(‘SetCore’, ‘All’, false)
this is hard to understand for a beginner. rewrite it from the top to the bottom to be beginner - friendly, also i don’t want a max retry. i want the script to continuously try.
- Assistant
Sure! I'll rewrite it in a more beginner-friendly way, removing the retry limit so that the script continuously tries until successful.
lua