Issue with printing intvalue

Why does this script print “damage” instead of the actual value associated with it?

local damage = script.damage

while true do
	print(damage)
	wait(1)
end

Screen Shot 2022-02-27 at 3.33.28 PM
Screen Shot 2022-02-27 at 3.33.34 PM

You need to get the actual value. So “print(damage.Value)”. Right now you’re getting the IntValue instance.

1 Like

Thank you, this fixed my problem

Add .Value after damage. (Because your not defining the value)