Point Script Support

Greetings. I have been trying to create a script so everytime that somebody uses a tool gets a specific amount of points on leaderstats. However, I have messed up. If I could have any feedback it would be really appreciated.

1 Like

Can you post some code where you think the mess up happens? We can’t help you because we have no context at all.

1 Like

I firstly tried to do it when 180 seconds pass.

 PointsService = game:GetService("PointsService")--declare service

     game.Players.PlayerAdded:connect(function(p)--Player function

     while true do --this means wait a while, set true, then do.

     wait(180)--wait time till getting 1 Player Point

     game:GetService("PointsService"):AwardPoints(p.userId,1)--Player Points awarding 1

     print("1 point awarded, well done!!")--Print

     end

 end)
1 Like

The errors: image

1 Like

Why define it again?

Also, you used AwardPoint, as shown in the error, but in the script it says you used AwardPoints

1 Like

Try this API reference, but by the looks of things, you’re doing it right.

1 Like

Might not be your problem, but PointsService is deprecated, so it would be better not to use it:

2 Likes

Well, maybe then should I use:

game:GetService("PointsService"):AwardPoints (1, 1)
 while true do --this means wait a while, set true, then do.

 wait(180)--wait time till getting 1 Player Point

 game:GetService("PointsService"):AwardPoints(p.userId,1)--Player Points awarding 1

 print("1 point awarded, well done!!")--Print

 end

end)
1 Like

Uhh, still tho…

1 Like

Other than that I’m as clueless as you, sorry

1 Like

It’s fine buddy, I’ll create an another topic as we’re off topic a little.

1 Like

Are you using a DataStore? That might be the issue.

1 Like

I don’t think PointService is in function at all, it was used back in the day as a progress or award system but not really anymore.
image

1 Like