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
You are checking if their points are greater than 1000, but not equal to 1000, simply change line 6 to:
if points.Value >= 1000 and script.Parent.PointsGiver.Value == true then
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?