I am making a game and I have a round system already made and everything. I only have one problem - I don't know how to make a reward for a whole team. A leaderstats reward, Like Gold and XP.
The real problem here is I don't know how to get all of the players on the winning team and then give them gold and XP.
The other stuff I do know how to do, Like adding the gold and XP. It's just this part that I just can't figure out.
Any help with getting all the players on a winning team would be appreciated!
I have tried doing a couple of things, But they didn't work.
Please NOTE : I do not want a whole script. I just need some help with getting the players on a team and then adding leaderstats. The adding leaderstats part is very known to me.

2 comments
Thanks for your answer! It did help, So thank you again!
No problem.