Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Script does not give points?

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 comment

0

Sir, please do not post your topic more than one time, and remain with your original topic. Thank you; https://scriptinghelpers.org/questions/6633/script-does-not-give-points

1 answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.