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
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
You need to get the actual value. So “print(damage.Value)”. Right now you’re getting the IntValue instance.
Thank you, this fixed my problem
Add .Value after damage. (Because your not defining the value)