utabon
|
  |
| Joined: 12 Aug 2009 |
| Total Posts: 900 |
|
|
| 20 Jun 2014 06:53 PM |
Thanks to: KnightmareXD
So KnightmareXD wrote me this script, thanks man. But I dont understand what Player the variable means. He left it blank and I'm confused, if you could help me I would really appreciate, thanks :)
local Player =
local GamePassId = 123123123
if Game:GetService("GamePassService"):PlayerHasPass(Player, GamePassId) then Game:GetService("PointsService"):AwardPoints(Player.userId, 2) else Game:GetService("PointsService"):AwardPoints(Player.userId, 1) end
|
|
|
| Report Abuse |
|
|
|
| 20 Jun 2014 06:55 PM |
| hm... Did it have an equals sign when you got it or was it just local Player? |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2014 06:56 PM |
And you should make all of that code run when this event fires:
game.Players.PlayerAdded:connect(function(Player) --code goes here end)
And that would fix the variable problem |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2014 06:56 PM |
| It means you have to define Player |
|
|
| Report Abuse |
|
|
utabon
|
  |
| Joined: 12 Aug 2009 |
| Total Posts: 900 |
|
|
| 20 Jun 2014 06:58 PM |
| I know I have to define it, but I dont know what to define it as. |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2014 07:00 PM |
| where is the script located? |
|
|
| Report Abuse |
|
|
utabon
|
  |
| Joined: 12 Aug 2009 |
| Total Posts: 900 |
|
| |
|
|
| 20 Jun 2014 07:02 PM |
| I'm assuming this code gets executed after someone touches the brick, right? |
|
|
| Report Abuse |
|
|
utabon
|
  |
| Joined: 12 Aug 2009 |
| Total Posts: 900 |
|
| |
|
utabon
|
  |
| Joined: 12 Aug 2009 |
| Total Posts: 900 |
|
| |
|