Dennoid
|
  |
| Joined: 21 Jun 2011 |
| Total Posts: 167 |
|
|
| 22 Jun 2014 02:40 PM |
Hello, I have a PlacePointsManager script I got and I am not sure where place ID will go. The instructions that came with the script is not clear enough. I just need to know where in the script the ID of the place will go. The script is down below. Thank you.
PointsService = game:GetService("PointsService") Stat = "KOs" Needed = 1 game.Players.PlayerAdded:connect(function(p) repeat wait() until p:FindFirstChild("leaderstats") ~= nil print("Found \"leaderstats\" object!") repeat wait() until p.leaderstats:findFirstChild(Stat) ~= nil print("Found "..Stat.." object!") p.leaderstats[Stat].Changed:connect(function(prop) print("Value changed!") if prop >= Needed then game:GetService("PointsService"):AwardPoints(p.userId,1) end end) end) |
|
|
| Report Abuse |
|