Basically I increment a stage by one and tbls[5] is the progression and it starts at zero, but the problem is, that I need to print out the stages everytime it changes to the certain number, like for example if its 1 then it’ll say plr.Name is on stage #1, trying to do this within the script but its not working
local function UpdateStage(...)
local args = {...}
for i,v in pairs(args) do
print(args[i])
end
if tbls[5] == args[i] then
print(plr.Name.. " is on Stage #"..args[i])
end
end
UpdateStage(1,2)
Wow I tried to make a variable and make it global insdie of the function but it still didnt seem to work but after putting it inside of the loop it works perfectly fine now thanks for the help