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

Script does not give points?

Asked by 10 years ago

This script is supposed to give you 1000 points when you get 1000 points

points = script.Parent.Parent.Parent.Parent.Parent.Parent.leaderstats.puntos
player = script.Parent.Parent.Parent.Parent.Parent.Parent
pointsgiver = "pointsgiver"
missiondoneA = "missiondone2"

if points.Value > 1000 and script.Parent.PointsGiver.Value == true then
    script.Parent.MissionDone.Value = true
    points.Value = points.Value + 1000
    script.Parent.PointsGiver.Value = false

    player:SaveBoolean(missiondoneA, player.PlayerGui.Objectiver.Frame.ScrollingFrame.GetPoints.MissionDone.Value)
    player:SaveNumber(pointsgiver, player.leaderstats.puntos.Value)

end

if script.Parent.MissionDone.Value == true then
    script.Parent.PointsGiver.Value = false
end

everything works correctly, but when i get 1000 points it doesnt give me the points im supposed to get

1 answer

Log in to vote
-1
Answered by
iLegitus 130
10 years ago

Apparentally..You dont have enough player points. There has to be a local storage for the playerpoints to be given from. Nothing comes out of thin air. So possibly lower to 10? or maybe get more playerpoints.

Micacalt

Ad

Answer this question