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

  • @Unknowingly_Exists
    @Unknowingly_Exists6 ай бұрын

    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

  • @robertparker3697
    @robertparker36976 ай бұрын

    Awesome 😊

  • @LeapInno
    @LeapInno6 ай бұрын

    Nice module idea.

  • @boblox_studio_dev
    @boblox_studio_dev6 ай бұрын

    bro got that josh hutcherson

Келесі