i am trying to make a fireball script and im writing the code for the anim right now but it keeps saying Players.BappoSama.PlayerScripts.FireBall:6: attempt to index nil with ‘FindFirstChild’ heres the code pay attention too the variable bit ```lua local FireBall = game.Workspace.FireBall[“Meshes/yunoair_Circle.001”]
local tween = game:GetService(“TweenService”)
local UIS = game:GetService(“UserInputService”)
local plr = game.Players.LocalPlayer
local char = game.Players.LocalPlayer.Character
local hum = char:FindFirstChild(“Humanoid”)
local anim1 = game.ServerStorage.MoonAnimatorExport.arm_dumm2
local animationTrack1 = hum:LoadAnimation(anim1)
local tweenifo = TweenInfo.new(
5,
Enum.EasingStyle.Sine,
Enum.EasingDirection.Out,
false,
-1
)
local Goals = {
CFrame.Angles(-41.057, math.rad(15.762),15.962)
}
local Tween1 = tween:Create(FireBall, tweenifo, Goals)
Tween1:Play()
UIS.InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.J then
animationTrack1:Play()
end
end)