local function LoadChicken(plr: Player)
local char = plr.Character or plr.CharacterAdded:Wait()
local Humanoid = char:WaitForChild("Humanoid")
if (char) then
local ChickenClone = ServerStorage.Chickens["Default Chicken"]:Clone()
local Animate = ChickenClone:WaitForChild("Animate")
Animate.Disabled = false
ChickenClone.Parent = workspace
char = ChickenClone
plr:LoadCharacter()
end
end
``` Keeps saying Humanoid is not a descandent of object.
try changing this to
if Humanoid then
Same thing. I am not quite sure.
also, What line is the error on?
It errors in the animation script of the Character. Line 470
can you screenshot that line? it’ll make finding the error easier.
local function LoadChicken(plr: Player)
local char = plr.Character or plr.CharacterAdded:Wait()
local Humanoid = char:WaitForChild("Humanoid")
local ChickenClone = ServerStorage.Chickens["Default Chicken"]:Clone()
ChickenClone.Name = plr.Name
ChickenClone.Parent = workspace
if (char) then
--local Animate = ChickenClone:WaitForChild("Animate")
Humanoid:ApplyDescription(ChickenClone)
end
end
Still won’t work.
Can someone please help been a few hours.
Change “char” to something else because it’s conflicting with an Lua object.
you assign the player character like this:
Player.Character = Chicken
“char” is just the character variable so when you do “char = Chicken” all it will do is change variable to the chicken model.
also is you firing this function when the player starts the game?