I was wondering if someone could explain the select function in this case? I copied this script from Kohl's Anti Exploit from his Scripth account, and I was wondering if I am on the right track with my theory.
if not select(2, pcall(game.Workspace.GetRealPhysicsFPS)):match("GetRealPhysicsFPS") or
game.Players.LocalPlayer.Parent ~= game.Players or
not pcall(function() game.Players.LocalPlayer.Archivable = true end) or
pcall(function() game.Players.LocalPlayer.RobloxLocked = true end) then
report("Attempted Nil, Attempted Speed Hack Bypass or RobloxLocked") break
end
My theory is that if two of the things in the select arguments is true, then the script will ban you. I am wondering if someone can confirm this theory, and explain the select function more in depth than what the Wiki gives.
If index is a number, returns all arguments after argument number index. Otherwise, index must be the string "#", and select returns the total number of extra arguments it received.

1 comment
Oh, I see it now. I forgot there were two )'s after the GetRealPhysicsFPS. Thank you.