What do you want to achieve? Keep it simple and clear!
I am trying to find the number of players in a certain team.
What is the issue?
When there is at least 1 player in a certain team, it is supposed to print “Despacito”. This is just for a test, because finding a number of players in other aspects is not working at all either.
What solutions have you tried so far?
I tried googling other methods of finding a number of players in a team, but none of them worked.
I also tried this, which works, but only works for printing, which is confusing.
local teams = game:GetService("Teams") local playersSpectating = teams["Vibers"]:GetPlayers() print(#playersSpectating)
Here is the script which is not working:
while true do task.wait(0.1) if #playersSpectating > 0 then print("Despacito") end end
If anyone could help solve this problem, it would be much appreciated!