--
--

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
