--// Functions

function MakeFakeArms()
	Arms = Instance.new("Model")
	Arms.Name = "Arms"
	Arms.Parent = L_5_

	local L_158_ = Instance.new("Humanoid")
	L_158_.MaxHealth = 0
	L_158_.Health = 0
	L_158_.Name = ""
	L_158_.Parent = Arms
		
	if L_3_:FindFirstChild("Shirt") then
		local L_163_ = L_3_:FindFirstChild("Shirt"):clone()
		L_163_.Parent = Arms
	end
	
	local L_159_ = L_3_:FindFirstChild("Right Arm"):clone()
	for L_164_forvar1, L_165_forvar2 in pairs(L_159_:GetChildren()) do
		if L_165_forvar2:IsA('Motor6D') then
			L_165_forvar2:Destroy()
		end
	end
	L_159_.Name = "Right Arm"
	L_159_.FormFactor = "Custom"
	L_159_.Size = Vector3.new(0.8, 2.5, 0.8)
	L_159_.Transparency = 0.0
	
	local L_160_ = Instance.new("Motor6D")
	L_160_.Part0 = L_159_
	L_160_.Part1 = L_3_:FindFirstChild("Right Arm")
	L_160_.C0 = CFrame.new()
	L_160_.C1 = CFrame.new()
	L_160_.Parent = L_159_	
	L_159_.Parent = Arms
		
	local L_161_ = L_3_:FindFirstChild("Left Arm"):clone()
	L_161_.Name = "Left Arm"
	L_161_.FormFactor = "Custom"
	L_161_.Size = Vector3.new(0.8, 2.5, 0.8)
	L_161_.Transparency = 0.0	
	
	local L_162_ = Instance.new("Motor6D")
	L_162_.Part0 = L_161_
	L_162_.Part1 = L_3_:FindFirstChild("Left Arm")
	L_162_.C0 = CFrame.new()
	L_162_.C1 = CFrame.new()
	L_162_.Parent = L_161_	
	L_161_.Parent = Arms
end

function RemoveArmModel()
	if Arms then
		Arms:Destroy()
		Arms = nil
	end
end

local L_121_

function CreateShell()
	L_121_ = time()
	local L_166_ = L_1_.Shell:clone()
	if L_166_:FindFirstChild('Shell') then
		L_166_.Shell:Destroy()
	end
	L_166_.CFrame =  L_1_.Chamber.CFrame
	L_166_.Velocity = L_1_.Chamber.CFrame.lookVector * 30 + Vector3.new(0, 4, 0)
	--shell.RotVelocity = Vector3.new(-10,40,30)
	L_166_.Parent = L_90_
	L_166_.CanCollide = false
	game:GetService("Debris"):addItem(L_166_, 1)
end
