RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"create a script inside a a text label that shows how much players are playing in a game"
-- local script inside a TextLabel local Players = game:GetService("Players") local TextLabel = script.Parent local function updatePlayerCount() TextLabel.Text = "Players Online: " .. tostring(#Players:GetPlayers()) end Players.PlayerAdded:Connect(updatePlayerCount) Players.PlayerRemoving:Connect(updatePlayerCount) updatePlayerCount()