idk what is this message but it appeared when it runs this line of code:
function OnDied()
Walk:Stop()
Idle:Stop()
Slime.Head.Sad.Transparency = 0
Slime.Head.Happy.Transparency = 1
Slime.HumanoidRootPart:Destroy()
Slime.Animations:Destroy()
Slime.Head.Anchored = true
Slime.Head.Rumble.TimePosition = 3
Slime.Head.Rumble:Play()
local rotation = Slime.Head.Rotation
for i=1, math.random(100,150) do
Slime.Head.Rotation = rotation
Slime.Head.Rotation = rotation + Vector3.new(math.random(-10,10), math.random(-10,10), math.random(-10,10))
task.wait()
end
Slime.Head.Rumble:Stop()
Slime.Head.ExplodeSound:Play()
Slime.Head.Sad:Destroy()
Slime.Head.Stats:Destroy()
Slime.Head.Transparency = 1
Slime.Head.CanCollide = false
Slime.Head.ExplodeParticle.Color = ColorSequence.new(Slime.Head.Color)
Slime.Head.ExplodeParticle.Enabled = true
wait(0.5)
Slime.Head.ExplodeParticle.Enabled = false
wait(4)
Slime:Destroy()
SlimeModule.SpawnSlime(workspace.SlimeSpawn[Slime:GetAttribute("SpawnBiome")][Slime:GetAttribute("SpawnPart")], workspace.SlimeSpawn[Slime:GetAttribute("SpawnBiome")], Slime.Name)
end
oh and here’s the output for more information
i need to fix it or my game will do bad with performance
ps: the WatchForErrors is a module and inside is empty