Maxxell
|
  |
| Joined: 25 Aug 2009 |
| Total Posts: 38710 |
|
|
| 02 Oct 2014 07:22 PM |
If a user buys a certain gamepass or item I want them to be awarded more player points. This script isn't working, help please?
script.Parent.Parent.Character:WaitForChild("Humanoid").Died:connect(function()
local creator = script.Parent.Parent.Character:WaitForChild("Humanoid"):FindFirstChild("creator")
if game:GetService("GamePassService"):PlayerHasPass(creator, 147464322) then game:GetService("PointsService"):AwardPoints(creator.Value.userId,1000)
elseif creator then game:GetService("PointsService"):AwardPoints(creator.Value.userId,1000)
end end)
The end goal is just to have a bunch of elseifs that check which pass you own so I don't have to manually add people in an exceptions list |
|
|
| Report Abuse |
|
|
|
| 02 Oct 2014 07:25 PM |
| Well, you're giving 1000 both times... |
|
|
| Report Abuse |
|
|
Maxxell
|
  |
| Joined: 25 Aug 2009 |
| Total Posts: 38710 |
|
|
| 02 Oct 2014 07:26 PM |
| Yeah I know it's just an example value that I can change |
|
|
| Report Abuse |
|
|
Maxxell
|
  |
| Joined: 25 Aug 2009 |
| Total Posts: 38710 |
|
| |
|