Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Double XP script not working? Also the output tells me it's not a gamepass??

Asked by
0msh 333 Moderation Voter
6 years ago
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...

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

Answer this question