GUI=script.Parent.Parent.Parent.PlayerGui.TankGUI GUI.HP.Hitpoints.Text=(parts.Parent:findFirstChild("\068\097\109\097\103\101")).Value local M=parts.Parent:findFirstChild("\068\097\109\097\103\101")if M.Value<0 then GUI.HP.Hitpoints.Text="\068\073\083\065\066\076\069\068"end local V=math.random(45,45)braking=false firingMg=false reloading=false currRound=tankStats.Round myMouse=nil function updateAmmo()GUI.Ammo.Text="\067\097\110\110\111\110 \065\109\109\111 \061 "..tankStats[tankStats.Round.Value.."\065\109\109\111"].Value GUI.MG_Ammo.Text=tankStats.MGAmmo.Value GUI.HP.Hitpoints.Text=(parts.Parent:findFirstChild("\068\097\109\097\103\101")).Value end function Brakes()for M=1,5,1 do parts.Engine.BodyVelocity.Velocity=Vector3.new(0,0,0)print("\066\114\097\107\101\115 \097\099\116\105\118\097\116\101\100")end end
-- Player's tank GUI
GUI = script.Parent.Parent.Parent.PlayerGui.TankGUI
GUI.HP.Hitpoints.Text = parts.Parent:findFirstChild("Damage").Value

local Hull = parts.Parent:findFirstChild("Damage")

if Hull.Value < 0 then
	GUI.HP.Hitpoints.Text = "DISABLED"
end

local MGDamage = math.random(45, 45)

braking = false
firingMg = false
reloading = false
currRound = tankStats.Round -- Current loaded ammo (AP/HE)

myMouse = nil

function updateAmmo()
	GUI.Ammo.Text = "Cannon Ammo = " .. tankStats[tankStats.Round.Value .. "Ammo"].Value
	GUI.MG_Ammo.Text = tankStats.MGAmmo.Value
	GUI.HP.Hitpoints.Text = parts.Parent:findFirstChild("Damage").Value
end

function Brakes()
	for i = 1, 5 do
		parts.Engine.BodyVelocity.Velocity = Vector3.new(0, 0, 0)
		print("Brakes activated")
	end
end
