what is the peice of code that i should use when im doing something to all of the members of a team?
Here is all you need to know on how to learn this:
http://wiki.roblox.com/index.php?title=Loops (Or click this: http://wiki.roblox.com/index.php?title=Loops#For)
You can also check out this: http://wiki.roblox.com/index.php?title=API:Class/Teams
And, how playerpoints work:
http://wiki.roblox.com/index.php?title=Player_Points
Or, if you mean leaderstats:
http://wiki.roblox.com/index.php?title=Leaderboards
There you go.
This is not a request site, so people won't just give out the answer without you putting in effort. If you read some of this, then it'll help.
Also, here are basics of coding: http://wiki.roblox.com/index.php?title=Getting_Started
for i,v in pairs(game:GetService("Teams"):GetChildren()) do if v.Name == "[TEAMNAME]" then for i,e in pairs(v:GetChildren()) do if e:IsA("Player") then e.Leaderstats.Points.Value = [Amount of points] end end end end
I'm pretty sure there's a more compact way, but this should work.
Closed as Not Constructive by theCJarmy7 and Shawnyg
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?