I have a script that awards points using PointsService:AwardPoints when a player captures a flag.
The issue is that the PointsService doesn’t award points to the user when they capture the flag for their team.
I get this error in the output instead:
I know. I know. PointsService is deprecated.
BUT that doesn’t mean the service shouldn’t work at all.
Plus, I’ve used PointsService for almost a year without an issue like this until now.
Can someone tell me what I’m doing wrong?
Portion of the script that’s erroring:
Yes. Everything else in the function is working perfectly fine. Its just that line for some reason.
1 Like
It looks like this error will only appear in studio. Have you tried to run this code in a game server?
SOTR654
(SOTR654)
April 23, 2022, 1:47am
#3
This means that, in cases of errors, they will not be repaired, you must change your system.
Yeah but why does it not work now all of a sudden?
Also, I already mentioned in the OP that I knew PointsService was deprecated.
SOTR654
(SOTR654)
April 23, 2022, 1:50am
#5
For the same reason, it is deprecated, the HTTP request that it used no longer works, Roblox no longer allows or receives it.
Since when did that happen though?
Its been deprecated for years but it was working until now.
SOTR654
(SOTR654)
April 23, 2022, 1:57am
#7
Well, I guess Roblox cleaned up the requests it allows for security, there was no point in saying it’s not allowed on devhub anymore if it was still usable.
1 Like
This is untrue, the request is still issued but can only be issued by game server. When this function is called from a local studio session it will error. However if you were to do the same thing in a game server the request issues fine and the points are added to the universe.
3 Likes
I see. I didn’t realize that. Thanks!