of     1   

PurplePanda123
#139486104Monday, July 07, 2014 2:16 AM GMT

When the player touches the part that the script is in, they should get awarded 3 player points, but the script won't work. Do you know why? local PointsService = Game:GetService("PointsService") function onTouched(hit) local pointsToAward = PointsService:GetAwardablePoints() if pointsToAward > 0 then PointsService:AwardPoints(player.userId, 3) end end script.Parent.Touched:connect(onTouched)
jknite
#139491770Monday, July 07, 2014 3:10 AM GMT

You have to tell the script what 'player' is... so 'player = hit.parent' should be added after 'function onTouched(hit)' -Jknite

    of     1