Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

I need help with Player Points please?

Example on my game:

Noob buys 1000 cash for 10 ROBUX, the server gets 1 Point. I want noob to automatically get that point when he successfully bought the cash, since 1R$ counts as the point. I can't figure out a working script, even though I checked the caps, spelling etc. Could someone please assist me on this?

1 comment

0

It makes our life easier if you paste the script somewhere.

1 answer

This might not work correctly depending on how you set it up.

local PointsService = Game:GetService("PointsService") -- Put this at the top of the script where they receive the currency

--PointsService:AwardPoints(user.userId, 1)  <-- Place that after the line of code where they receive the currency. Edit the 1 to how ever many points you want to award them. Also the "user.userId" might be wrong, if you have the player defined with the function, replace 'user' with however the player is defined.

I believe this should work, if not I am sure someone will fix it.

3 comments

0

Thanks. I will wait to see if another person comes up with an answer, I can then decide the proper answer.

0

You should see if that works first.

0

I got replies on the ROBLOX Forum saying "user is undefined" So I'm trying to get this thing fixed. I'll tell you the fixed script through a PM if you want.

This discussion is preserved as it was. New answers, comments, and votes are closed.