I made a localscript in a gui that counts the players on the hunter team, it print the (#playerCount…" Hunter/s) but it doesnt change the TextLabel
--//Service
local teamService = game:GetService("Teams")
local Hunter= game.Teams["The Hunters"]
--//Components
local text = script.Parent.Frame.Roundify.Number
--//Script
local function changeNumber()
local playerCount = HunterTeam:GetPlayers()
print(#playerCount.." Hunter/s")
text.Text = #playerCount.."/4"
end
HunterTeam.PlayerAdded:connect(changeNumber)
HunterTeam.PlayerRemoved:connect(changeNumber)
–//Service
local teamService = game:GetService(“Teams”)
local Hunter= game.Teams[“The Hunters”]
–//Components
script.Parent.Frame.Roundify.Number
–//Script
local function changeNumber()
local playerCount = HunterTeam:GetPlayers()
print(#playerCount…" Hunter/s")
script.Parent.Frame.Roundify.Number.Text = #playerCount…“/4”
end
Your problem here is that you reference “The Hunters” team with a variable named Hunter in your code, but then you try to reference them as HunterTeam in the middle of your code. Either change variable’s name to HunterTeam from the start or change any other HunterTeam in your code to Hunter.