utabon
|
  |
| Joined: 12 Aug 2009 |
| Total Posts: 900 |
|
|
| 20 Jun 2014 08:06 PM |
Why wont this work?
script.Parent.Touched:connect(function(hit) local GamePassId = 162381640
if Game:GetService("GamePassService"):PlayerHasPass(Player, GamePassId) then Game:GetService("PointsService"):AwardPoints(Player.userId, 2) else Game:GetService("PointsService"):AwardPoints(Player.userId, 1)
end end) |
|
|
| Report Abuse |
|
|
| |
|
utabon
|
  |
| Joined: 12 Aug 2009 |
| Total Posts: 900 |
|
|
| 20 Jun 2014 08:10 PM |
| How do I define the player to the player who touched it? I'm terrible at scripting xD |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2014 08:12 PM |
| Player = game.Players:GetPlayerFromCharacter(hit.Parent) |
|
|
| Report Abuse |
|
|
utabon
|
  |
| Joined: 12 Aug 2009 |
| Total Posts: 900 |
|
| |
|