• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

A request for tfs 1.2

president vankk

Web Developer & AuraOT Owner
Joined
Jul 10, 2009
Messages
5,719
Solutions
9
Reaction score
339
Hi folks! I don't know how what function to use on it so here I am. I think it is simple but was I said, I don't know the function to use, if there is 10 players or higher than on the screen then will return false, that is all.


Thanks.
 
Hi folks! I don't know how what function to use on it so here I am. I think it is simple but was I said, I don't know the function to use, if there is 10 players or higher than on the screen then will return false, that is all.


Thanks.
Took a while for stupid me to do it.. Hopefully it will work.

Code:
local spec = Game.getSpectators(Position(100, 100, 7), false, true, 7, 7, 5, 5)
local amount = 0
for _, s in pairs(spec) do
    amount = amount + 1
    if amount >= 10 then
        return false
    end
end
 
Back
Top