local w=script.Parent.Parent.Parent local j=w.Head local A=w.Humanoid local H=A.Health local G=A.Health local x=w:Clone()local R=script.Parent.Parent.Modules local c=require(R.CoreModule)local L=require(R.ActionsModule)local f=require(R.Status)local B=require(R:WaitForChild("\067\111\109\098\097\116\077\111\100\117\108\101"))local C=B.ArmorDurability local p=C local Q=B.ShowArmorBar local S=A:LoadAnimation(w:WaitForChild("\068\101\097\116\104\065\110\105\109\097\116\105\111\110"))local h=j:WaitForChild("\065\114\109\111\114\066\097\114")local k=h:WaitForChild("\077\097\105\110\070\114\097\109\101")local n=k:WaitForChild("\066\097\114")local J=n:WaitForChild("\070\105\108\108")local I=j:WaitForChild("\072\101\097\108\116\104\066\097\114")local F=I:WaitForChild("\077\097\105\110\070\114\097\109\101")local y=F:WaitForChild("\066\097\114")local E=y:WaitForChild("\070\105\108\108")local o=E:WaitForChild("\083\104\097\100\105\110\103")local W=j:WaitForChild("\078\097\109\101\084\097\103")local v=W:WaitForChild("\077\097\105\110\070\114\097\109\101")local D=v:WaitForChild("\084\101\120\116\076\097\098\101\108")local q=true D.Text=w.Name if Q==true then h.Enabled=true else h.Enabled=false end if q==true then I.Enabled=true W.Enabled=true else I.Enabled=false W.Enabled=false end local a=game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")

local marine = script.Parent.Parent.Parent
local myHead = marine.Head
local myHuman = marine.Humanoid

local oldHealth = myHuman.Health
local healthAfterDamage = myHuman.Health

local clone = marine:Clone()

local modules = script.Parent.Parent.Modules
local core = require(modules.CoreModule)
local actions = require(modules.ActionsModule)
local status = require(modules.Status)

local combatModule = require(modules:WaitForChild("CombatModule"))

local ArmorDurability = combatModule.ArmorDurability
local MaxArmorDurability = ArmorDurability
local ShowArmorBar = combatModule.ShowArmorBar

local DeathAnimation = myHuman:LoadAnimation(marine:WaitForChild("DeathAnimation"))

local ArmorGUI = myHead:WaitForChild("ArmorBar")
local ArmorFrame = ArmorGUI:WaitForChild("MainFrame")
local ArmorBar = ArmorFrame:WaitForChild("Bar")
local ArmorFill = ArmorBar:WaitForChild("Fill")

local HealthGUI = myHead:WaitForChild("HealthBar")
local HealthFrame = HealthGUI:WaitForChild("MainFrame")
local HealthBar = HealthFrame:WaitForChild("Bar")
local HealthFill = HealthBar:WaitForChild("Fill")
local HealthShading = HealthFill:WaitForChild("Shading")

local NameTag = myHead:WaitForChild("NameTag")
local NameFrame = NameTag:WaitForChild("MainFrame")
local NameText = NameFrame:WaitForChild("TextLabel")

local OverrideDefaultGUI = true -- turn this to false if u want to use the default roblox health gui and name gui

NameText.Text = marine.Name

if ShowArmorBar == true then
	ArmorGUI.Enabled = true
else
	ArmorGUI.Enabled = false
end

if OverrideDefaultGUI == true then
	HealthGUI.Enabled = true
	NameTag.Enabled = true
else
	HealthGUI.Enabled = false
	NameTag.Enabled = false
end

local TweenService = game:GetService("TweenService")
