I made this script to print how many player points someone has when they touch it and it doesn't work. I've looked over the wiki page and I'm using everything they use, but it's just not working.
PS = Game:GetService("PointsService")
script.Parent.Touched:connect(function(pl)
if pl.Parent:GetPlayerFromCharacter().Parent:IsFriendsWith(30125279) then
Total = Ps:GetGamePointBalance(pl.Parent:GetPlayerFromCharacter().Parent.userID)
if Total >= 100 then
print(pl.Parent.name.."has"..Total.."points. Good job!")
else
print(pl.Parent.name.."has"..Total.."points. Try harder."

1 comment
Ok, thank you. Answer accepted, upvoted. Please upvote.