Monster:Initialize()Monster:InitializeUnique()while true do if not Monster:IsAlive()then if Data.IsDead==false then Data.IsDead=true Data.TimeOfDeath=tick()Self.Died:Fire()end if Data.IsDead==true then task.wait(.5)for F,C in pairs(Self:GetDescendants())do if C:IsA("\066\097\115\101\080\097\114\116")then C.Anchored=true;(TweenService:Create(C,TweenInfo.new(.5),{Transparency=1})):Play()end end Self:Destroy()script.Enabled=false end end if Monster:IsAlive()then Monster:Update()end wait()end
--
--
Monster:Initialize()
Monster:InitializeUnique()

while true do
	if not Monster:IsAlive() then
		if Data.IsDead == false then
			Data.IsDead = true
			Data.TimeOfDeath = tick()
			Self.Died:Fire()
		end
		if Data.IsDead == true then
			task.wait(0.5)
			for i, v in pairs(Self:GetDescendants()) do
				if v:IsA("BasePart") then
					v.Anchored = true
					TweenService:Create(v, TweenInfo.new(0.5), { Transparency = 1 }):Play()
				end
			end
			Self:Destroy()
			script.Enabled = false
		end
	end

	if Monster:IsAlive() then
		Monster:Update()
	end

	wait()
end
