I havn't messed with playerpoints yet, but based on the wiki I'm guessing you would do something like this:
01 | ps = game:GetService( "PointsService" ) |
02 | PART = whereeverthepartis |
03 |
04 | function Touched(p) |
05 | if p.Parent:FindFirstChild( "Humanoid" ) ~ = nil then |
06 | player = p.Parent:GetPlayerFromCharacter() |
07 | if ps:GetAwardablePoints() > 0 then |
08 | ps:AwardPoints(player.userId, 1 ) |
09 | end |
10 | end |
11 | end |
12 |
13 | PART.Touched:connect(Touched) |