Why no work proximity problems + leaderstat

 script.Parent.ClickDetector.MouseClick:Connect(function(player)
	local	  prop = script.Parent.ProximityPrompt
	prop.Enabled = false
	local playerPoints = player.leaderstats.gold
	playerPoints.Value = playerPoints.Value + 1 
	
	if playerPoints.Value += 100 then 
		
		prop.Enabled = true 
		

	end
end)

i want gold to be 100 or up then prop will be enabled but it not working
plz explain

You’re disabling the ProximityPrompt whenever the ClickDetector is clicked.

script.Parent.ClickDetector.MouseClick:Connect(function(player)
	local prop = script.Parent.ProximityPrompt
	prop.Enabled = false
	local playerPoints = player.leaderstats.gold
	playerPoints.Value = playerPoints.Value + 1 
	if playerPoints.Value == 100 then 
		prop.Enabled = true 
	end
end)

You have to use == while comparing rather than +=

local part = script.Parent
local click = part.ClickDetector
local prompt = part.ProximityPrompt

click.MouseClick:Connect(function(player)
	prompt.Enabled = false
	player.leaderstats.gold.Value += 1 
	if player.leaderstats.gold.Value >= 100 then 
		prompt.Enabled = true 
	end
end)

I see what you were trying to achieve, you just needed to use the “>=” or “>” operator.

“>=” is fine, his issue was using “+=”. I see you’ve edited your post, this can be ignored.

Typo what can I say? ¯_( ͡❛ ͜ʖ ͡❛)_/¯