How would you do this?
COMMUNITY QUESTION
Making a Touch Player Points awarder?
1 answer
I havn't messed with playerpoints yet, but based on the wiki I'm guessing you would do something like this:
ps = game:GetService("PointsService")
PART = whereeverthepartis
function Touched(p)
if p.Parent:FindFirstChild("Humanoid") ~= nil then
player = p.Parent:GetPlayerFromCharacter()
if ps:GetAwardablePoints() > 0 then
ps:AwardPoints(player.userId, 1)
end
end
end
PART.Touched:connect(Touched)
This discussion is preserved as it was. New answers, comments, and votes are closed.
