IntValue.Changed not working?

Title explains it. How can I fix this issue? There is not error in the output by the way.

Here is the script:

XP.Changed:Connect(function()
		if XP.Value >= RequiredXP.Value then
			XP.Value = 0

			Level.Value += 1
			print(player.Name.." Is now on level: "..Level.Value)
			RequiredXP.Value = Level.Value * 100
		end
	end)

Thank you for your time,

papahetfan

1 Like

Classic Baseplate.rbxl (28,6 KB)

I tried to make the same what u tried, its working on me, could u tell your problem better?

1 Like

try this

XP:GetPropertyChangedSignal("Value"):Connect(function()
	if XP.Value >= RequiredXP.Value then
		XP.Value = 0

		Level.Value += 1
		print(player.Name.." Is now on level: "..Level.Value)
		RequiredXP.Value = Level.Value * 100
	end
end)

hope this helps

3 Likes

It works! Thank you very much!

2 Likes