I am trying to put an animation into my game that is triggered by using a tool. I try to declare the variables but when I put :WaitForChild it gives me this error:
Code where the error is happening
local Mouse = game.Players.LocalPlayer:GetMouse()
local Character = game.Players.LocalPlayer.Character
local Humanoid = Character:WaitForChild(“Humanoid”)
local Animator = Humanoid:WaitForChild(“Animator”)
local AnimationClip = script.Animation
local LoadedAnimation = Animator:LoadAnimation(AnimationClip)
I don’t get why it is doing this. Could someone please explain?