#String or Number?

1 messages · Page 1 of 1 (latest)

fossil dawn
#

I watched a tutorial for this because im still fairly new to scripting, that script is what was in the tutorial, but it keeps telling me that PunchCombo.Value is a string? I think its supposed to be a number, but this is all very confusing

fossil dawn
dense needle
fossil dawn
dense needle
#

the # symbol is used for almost all of the value objects

fossil dawn
#

its value is 1

#

the classname is stringValue

dense needle
#

then yeah thats the problem, string values can only hold strings, so its actually "1" (string), not 1 (number)

fossil dawn
#

how do I make it a number

dense needle
#

use a num or int value, int values can only hold whole numbers, while num values can hold any number including decimals

fossil dawn
#

ok

gentle starBOT
#

studio** You are now Level 1! **studio