Roblox PointsService:AwardPoints() local testing -
locally, in single play mode, pointsservice:awardpoints()
fails silently. wrapping inside pcall()
not give me anything, success nor error. lines after 1 not executed , function returns.
i'm guessing not work locally? behavior weird , don't know how develop/test it. i've been banging head hours, maybe long , i'm missing obvious?
edit: after more testing, avoid adding more comments, realized expected error returned (processing pointsservice:awardpoints error: http 0 (http 403 (http/1.1 403 forbidden))
) after restart studio , during first local run (play). hit stop , play again, errors no more returned , behavior described. also, appears work in test mode. i'm guessing "cleanup" button helps, while "stop" in single play mode doesn't. still, quick testing single play mode not possible , slows down development lot
this happening 2 reasons:
- you're trying award playerpoints while in play solo, restricted.
- or -
- you're trying award points localscript, restricted. points can awarded serverside prevent exploiters ruining leaderboards.
Comments
Post a Comment