Score (Property)

From Legacy Roblox Wiki
Jump to navigationJump to search
Score
Property Integer The team's score
Description This integer value is not used by any game services, but can be used to store a whole number value alongside a team.
Member of Team
Example
local team = Instance.new( "Team", game:GetService( "Teams" ) )
team.Name = "Blue Falcons"
team.Score = 0

while true do
   team.Score = team.Score + 1
   wait(5)
end