Script does not give points?
This script is supposed to give you 1000 points when you get 1000 points
01 | points = script.Parent.Parent.Parent.Parent.Parent.Parent.leaderstats.puntos |
02 | player = script.Parent.Parent.Parent.Parent.Parent.Parent |
03 | pointsgiver = "pointsgiver" |
04 | missiondoneA = "missiondone2" |
06 | if points.Value > 1000 and script.Parent.PointsGiver.Value = = true then |
07 | script.Parent.MissionDone.Value = true |
08 | points.Value = points.Value + 1000 |
09 | script.Parent.PointsGiver.Value = false |
11 | player:SaveBoolean(missiondoneA, player.PlayerGui.Objectiver.Frame.ScrollingFrame.GetPoints.MissionDone.Value) |
12 | player:SaveNumber(pointsgiver, player.leaderstats.puntos.Value) |
16 | if script.Parent.MissionDone.Value = = true then |
17 | script.Parent.PointsGiver.Value = false |
everything works correctly, but when i get 1000 points it doesnt give me the points im supposed to get