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

Player Point NOT awarded on Level up. Why not? [1 Answer = Question, UNSOLVED]

Asked by 10 years ago

I have this script here that when you level up, it SHOULD award a Playerpoint. There is about 300K playerpoints available in this game, why won;t it award any?

    if xp.Value > 69 then
        xp.Value = xp.Value - 70
        xp.Value = xp.Value + (xp.Value * 2)
        levels.Value = levels.Value + 1
            local pps = game:GetService("PointsService")
                if pps:GetAwardablePoints() >= 1 then
                pps:AwardPoints(g.userId, 1)
            end
    end
  • Michael
0
Note: This isn't the full script, but just a major part of it! Michael007800 144 — 10y
0
I don't see any errors in this script. You will have to recheck other parts of your script with print() to find out where it goes wrong. Otherwise post more code. damagex443 325 — 10y

1 answer

Log in to vote
0
Answered by
AshJack 15
10 years ago

Is it a localscript or a normal script?

0
Server Sided (Normal) Michael007800 144 — 10y
Ad

Answer this question