No problem, I found this out recently too.
That’s what I was just thinking.
I know that I’m a bit late but you’d do it like this:
value:GetPropertyChangedSignal("Value"):Connect(function()
if value.Value == number then
-- value reached to number
end
end)
1 Like
try this
local intvalue = script.Parent
local amount = 10 — change to anything
local passedamount = false
intvalue.Changed:Connect(function()
If passedamount == false then
passedamount = true
if intvalue.Value >= amount then
print("amount reached") — passedamount prevents this from printing several times when the value changes again
— do whatever you want here
end
end
end)