I keep on getting this error whenever I respawn. After the error, I can't use any of my anims.
Here is the code
local rs = game:GetService("ReplicatedStorage")
local uis = game:GetService("UserInputService")
local plr = game.Players.LocalPlayer
local events = rs:WaitForChild("Events")
local mods = rs:WaitForChild("ClientModules")
local check = require(mods:WaitForChild("MoveCheck"))
local dashEvent = events:WaitForChild("Dash")
local attackEvent = events:WaitForChild("Attack")
local character = plr.Character or plr.CharacterAdded:Wait()
local hrp = character:WaitForChild("HumanoidRootPart")
local tool = script.Parent
local equipped = false
local animator = character:WaitForChild("Humanoid"):WaitForChild("Animator")
local ldash = animator:LoadAnimation(script:WaitForChild("Ldash"))
local rdash = animator:LoadAnimation(script:WaitForChild("Rdash"))
local fdash = animator:LoadAnimation(script:WaitForChild("Fdash"))
local fdashend = animator:LoadAnimation(script:WaitForChild("FdashEnd"))
The error comes up on ```lua
local ldash = animator:LoadAnimation(script:WaitForChild("Ldash"))
This is inside a local script which is inside a tool which is inside server storage and it gets added to the player whenever they spawn in