|
| 28 Dec 2012 01:45 PM |
^^^
Perfection is not attainable, but if we chase perfection we can catch excellence. |
|
|
| Report Abuse |
|
|
|
| 28 Dec 2012 01:46 PM |
if not GAMEPASSSERVICE:PlayerHasPass(PLAYER, PASSID) then -- stuff end |
|
|
| Report Abuse |
|
|
|
| 28 Dec 2012 01:49 PM |
So this should work?
local GamePassId = 101708765
function onPlayerEntered(player) local stats = Instance.new("IntValue") stats.Name = "leaderstats" local c = Instance.new("IntValue") c.Name = "Points" c.Value = 0 c.Parent = stats stats.Parent = player player:WaitForDataReady() c.Value = player:LoadNumber("Points") if (Game:GetService("GamePassService"):PlayerHasPass(player,GamePassId)) and if c.Value >= 1000 then c.Value = 1000 end end if not(Game:GetService("GamePassService"):PlayerHasPass(player,GamePassId)) and if c.Value >=500 then c.Value = 500 end end
Perfection is not attainable, but if we chase perfection we can catch excellence. |
|
|
| Report Abuse |
|
|
|
| 28 Dec 2012 01:53 PM |
if (Game:GetService("GamePassService"):PlayerHasPass(player,GamePassId)) and c.Value >= 1000 then c.Value = 1000 end
if not(Game:GetService("GamePassService"):PlayerHasPass(player,GamePassId)) and c.Value >=500 then c.Value = 500 end |
|
|
| Report Abuse |
|
|
|
| 28 Dec 2012 02:26 PM |
THANK YOU SOOOOOOO MUCH.
Perfection is not attainable, but if we chase perfection we can catch excellence. |
|
|
| Report Abuse |
|
|