Script does not give points? [closed]
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
Marked as Duplicate by M39a9am3R, TheeDeathCaster, and Articulating
This question has been asked before, and already has an answer. If those answers do not fully address your question, then please ask a new question here.
Why was this question closed?