I am trying to make a team deathmatch game, and my gui for the kill score has been having issue, I have made it so that it does individual leaderstats. Is there a way to make it so that it use team stats (The number next to the team name which is all scores added up.)
This is my current local script for the GUI.
while wait(1) do
script.Parent.Text = "Kills : "..game.Players.LocalPlayer.leaderstats.Kills.Value
end
I am very new to scripting so I have tried youtube tutorials and I can’t find anything.
Also please take note that a lot of tutorials out there are either outdated or just simply dont use the correct way to do things with optimization in mind.
Avoid using loops whenever possible by replacing things with event based connections.