if this makes more sense
function example (anyparamater) print (anyperamater) --this line somehow converts anyperamater to a string-- end example(hello)
what I want to know is how to make it print hello without the parameter being a string and the output should be the same with it being a string so the output in both ways should be saying hello
Hi superspeedr1234!
I am not completely sure about this, but I think there is a function called tostring()
.
function example(anyparameter) print(anyparameter) local string = tostring(anyparameter) end example(hello)
Not sure if this works, but hope it does.
LennyPlayzYT
This is not possible.