I am trying to insert an animation into my code for the first time. Here is my code:
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local hum = char:WaitForChild("Humanoid")
local animaInstance = Instance.new("Animation")
animaInstance.AnimationId = "rbxassetid://4641537766"
local fireBallAnim = hum.LoadAnimation(animaInstance)
fireBallAnim:Play()
I am getting the error
The function LoadAnimation is not a member of Animation
I know the character has fully loaded, so I don't understand. Could I be getting this error if there is something wrong with the animation itself? What else am I missing out?
Thanks
