script.Parent.Touched:Connect(function(hit)
if script.Parent.Parent.ProcentValue >= script.Parent.Parent.ProcentValue2 then
script.Parent.Parent.TouchValue.Value = 100
end
end)
New to scripting, why can I not compare two NumberValues? Is there any way I can get around this? The script is supposed to compare two NumberValues so another value gets the value 100.
Thanks, Xsodar

2 comments
You have to compare their values, not the object itself. So, do this. script.Parent.Parent.ProcentValue.Value >= script.Parent.Parent.ProcentValue2.Value
Oh that's right, I always get stuck on the easy things, thanks.