I'm kind of new to LUA language, But I can't figure out why this code:
local animation = script:WaitForChild('Animation') local humanoid = script.Parent:WaitForChild('Humanoid') local Anim = humanoid:LoadAnimation('Animation')
would give me that error... Help?
I think i have fixed those errors
Go read some of the learn roblox tutorials on the dev hub :)
local animation = script:WaitForChild('Animation') local humanoid = script.Parent:WaitForChild('Humanoid') local Anim = humanoid:LoadAnimation(animation) -- You did 'Animation' instead of animation, your problem is now fixed!
Also, put your code in a code block like this:
Step 1: Click "Code block" up at the top. THIS WILL CREATE A CODE BLOCK AT WHERE YOU ARE TYPING! Make sure to watch out! https://gyazo.com/a43a2507e62b9f335d16460da0175b0f
Step 2: Copy and paste code into the code block. https://gyazo.com/29bc2b9b117fb64b956db60170df7fcf