can someone tell me what is wrong with this code. basically if i write them like below it works.
local function printMyName(arg) print(arg) end local answer = 'Kenny is kool!' printMyName(answer)
but if i write them like this it crash saying that attempt to call global printMyName( a nil value)
local printMyName
local answer = ‘Kenny is kool!’
printMyName(answer)
function printMyName(arg)
print(arg)
end
–im trying to keep my function below but it won’t work