ok, so create a script (inside ServerScriptService or Workspace), and write this:
1 | game.Players.PlayerAdded:Connect( function (plr) |
2 | local lead = Instance.new( "Folder" , plr) |
3 | lead.Name = "leaderstats" |
4 | local currency = Instance.new( "IntValue" , lead) |
5 | currency.Name = "Points" |
However, if you're making a part to give you points, also write this in the script:
01 | local part = game.Workspace:WaitForChild:( "Part" 0 |
04 | part.Touched:Connect( function (hit) |
05 | local lead = hit.Parent:WaitForChild( "leaderstats" ) |
06 | local points = lead:WaitForChild( "Points" ) |
09 | points.Value = points.Value + 25 |
Closed as Not Constructive by 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?