Hi, im encountering this error and after some research i found out its common? can anyone give me an hand to fix this its getting kinda annyong.
i tried almost everything this is my code:
local Players = game:GetService("Players")
local function onCharacterAdded(character)
local humanoid = character:WaitForChild("Humanoid")
for _, playingTracks in pairs(humanoid:GetPlayingAnimationTracks()) do
playingTracks:Stop(0)
end
local animateScript = character:WaitForChild("Animate")
animateScript.idle.Animation1.AnimationId = "rbxassetid://19912090652"
end
local function onPlayerAdded(player)
if player.Character then
onCharacterAdded(player.Character)
end
player.CharacterAdded:Connect(onCharacterAdded)
end
Players.PlayerAdded:Connect(onPlayerAdded)
i took this code from the roblox marketplace after my code (similar to this with only the exception of the script having an animation child) had this error
i tried replacing the code multple time with no luckm, can anyone help out?
** You are now Level 2! **