How To Show How Many People Are On A Team / Map! (Roblox Studio)
Тәжірибелік нұсқаулар және стиль
❌ DONT CLICK ❌ / @unknowingly_exists
How to fix the Text Label: • How to STOP Your Billb...
---------------------- SCRIPT ----------------------
local teamPlayerCountLabel = script.Parent
local teamToTrack = game.Teams["PUT TEAM HERE"] -- change ["PUT TEAM HERE"] to your team in game.Teams.
local function updateLabel()
local playerCount = #teamToTrack:GetPlayers()
teamPlayerCountLabel.Text = "Players In Team: " .. playerCount -- you can change "Players In Team: " to "Players In Map: " or what ever you want.
end
teamToTrack.PlayerAdded:Connect(updateLabel)
teamToTrack.PlayerRemoved:Connect(updateLabel)
updateLabel()
-- No need for credit, but if you want to credit me, I would like credit would be a sub. it helps alot!
-- Need any help or want a TT on something Feel free to comment!
-- You can remove the all the --'s
------------------------------------------------------------
Пікірлер: 4
local teamPlayerCountLabel = script.Parent local teamToTrack = game.Teams["PUT TEAM HERE"] -- change ["PUT TEAM HERE"] to your team in game.Teams. local function updateLabel() local playerCount = #teamToTrack:GetPlayers() teamPlayerCountLabel.Text = "Players In Team: " .. playerCount -- you can change "Players In Team: " to "Players In Map: " or what ever you want. end teamToTrack.PlayerAdded:Connect(updateLabel) teamToTrack.PlayerRemoved:Connect(updateLabel) updateLabel() -- No need for credit, but if you want to credit me, I would like credit would be a sub. it helps alot! -- Need any help or want a TT on something Feel free to comment! -- You can remove the all the --'s
Awesome 😊
Nice module idea.
bro got that josh hutcherson