This Is a knife Tool Script I made (A local Script)
I Have It in StarterPack
When I Run It The First Time , The Animation Is Properly Loaded
But When I Die and Respawn The "Second" Time , It Presents Me With This Error ...
" 14:20:24.271 - LoadAnimation requires the Humanoid object (Tizzel40.Humanoid) to be a descendant of the game object"
[ It errors At Line 29 When I try To Load My Animation ! ]
And Guess What , It also Prints "HUM IS A DEC OF THE GAME OBJ !" too , which I find Wired For It to not to work !
Why Is It Broken , what Does This Mean , And How Do I Fix it ???
Here is a local script , located inside a folder , inside my tool. The Folder is Named "Scripts" !
local play = game.Players.LocalPlayer
local mouse = play:GetMouse()
local char = play.Character
if not char then
char = play.CharacterAdded:Wait()
end
local hum = char:WaitForChild("Humanoid")
repeat wait() until hum:IsDescendantOf(char)
warn("HUM IS A DEC OF THE GAME OBJ !")
local tool = script.Parent.Parent
local Using = tool:WaitForChild("Using")
local Animations = tool:WaitForChild("Animations")
local Scripts = tool:WaitForChild("Scripts")
local Remotes = tool:WaitForChild("Remotes")
local Stats = require(Scripts.Stats)
local TakeOutKifeAnimation = hum:LoadAnimation(Animations.TakeOut)
---T40

4 comments
On local mouse = play:GetMouse(), it should be player:GetMouse()
no
There is No Variable called "player" though
lol , thankyou lol !