Whenever my character is reset, I get this error from my tool. Where am I going wrong here?
local character = player.Character or player.CharacterAdded:Wait()
player.CharacterAdded:Connect(function(newCharacter)
character = newCharacter
end)
local hum = character:WaitForChild("Humanoid")
local IdleAnim = hum:LoadAnimation(Animations.Idle) -- This is the line erroring
local ReloadAnim = hum:LoadAnimation(Animations.Reload)
local ShootAnim = hum:LoadAnimation(Animations.Shoot)
local DrawAnim = hum:LoadAnimation(Animations.Draw)
LoadAnimation requires the Humanoid object (QuikSilver09.Humanoid) to be a descendant of the game object

1 comment
[SOLVED, kinda] I had a lot of people try to help with waits and stuff. It didn't work and I couldn't figure out why. I was using StarterPack, but for my scenario I spawn the weapon for them anyway and don't use StarterPack so it won'