game.Players.PlayerAdded:connect(function(plr)
	local stats = Instance.new('Folder',plr)
	stats.Name = "StoredStats"
	local XP = Instance.new("IntConstrainedValue",stats)
	XP.Parent = stats
	XP.Name = "EXPMultiplier"
	XP.MinValue = 1
	XP.MaxValue = 3
	XP.Value = 1
	local Gold = Instance.new("IntConstrainedValue",stats)
	Gold.Parent = stats
	Gold.Name = "GoldMultiplier"
	Gold.MinValue = 1
	Gold.MaxValue = 3
	Gold.Value = 1
	if game:GetService("GamePassService"):PlayerHasPass(plr,4549604) then
		Gold.Value = 2
	end
	if game:GetService("GamePassService"):PlayerHasPass(plr,4549592) then
		XP.Value = 2
	end
end)

the script looks fine to me, but does not work. It does not increase the player's values for some reason. Also the output tells me that those ids are not game pass ids, suggesting me to use player owns asset...

1 comment

0

roblox really messed up gamepass ids. im having the same issue, i cant get my head around it