Whenever I die when I have my sniper and then respawn, this error comes and breaks the sniper?
17:12:59.522 - LoadAnimation requires the Humanoid object (super1boom.Humanoid) to be a descendant of the game object
Here's the code:
local tool = script.Parent
local player = game:GetService("Players").LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
wait(0.3)
local human = char.Humanoid
local hold = script.Parent.Hold
local shoot = script.Parent.Shoot
local animate1
local animate2
local RS = game:GetService("ReplicatedStorage")
local event = RS:WaitForChild("Shoot")
tool.Equipped:Connect(function()
animate1 = human:LoadAnimation(hold)
animate1:Play()
end)
tool.Unequipped:Connect(function()
animate1:Stop()
end)
tool.Activated:Connect(function()
event:FireServer()
animate2 = human:LoadAnimation(shoot)
animate2:Play()
end)
The Sniper does work, until I die, which breaks the script for some reason.

3 comments
Why does this have over 600 views?
idk
lmao