--// Functions

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

	local L_169_ = Instance.new("Humanoid")
	L_169_.MaxHealth = 0
	L_169_.Health = 0
	L_169_.Name = ""
	L_169_.Parent = Arms
		
	if L_3_:FindFirstChild("Shirt") then
		local L_174_ = L_3_:FindFirstChild("Shirt"):clone()
		L_174_.Parent = Arms
	end
	
	local L_170_ = L_3_:FindFirstChild("Right Arm"):clone()
	for L_175_forvar1, L_176_forvar2 in pairs(L_170_:GetChildren()) do
		if L_176_forvar2:IsA('Motor6D') then
			L_176_forvar2:Destroy()
		end
	end
	L_170_.Name = "Right Arm"
	L_170_.FormFactor = "Custom"
	L_170_.Size = Vector3.new(0.8, 2.5, 0.8)
	L_170_.Transparency = 0.0
	
	local L_171_ = Instance.new("Motor6D")
	L_171_.Part0 = L_170_
	L_171_.Part1 = L_3_:FindFirstChild("Right Arm")
	L_171_.C0 = CFrame.new()
	L_171_.C1 = CFrame.new()
	L_171_.Parent = L_170_	
	L_170_.Parent = Arms
		
	local L_172_ = L_3_:FindFirstChild("Left Arm"):clone()
	L_172_.Name = "Left Arm"
	L_172_.FormFactor = "Custom"
	L_172_.Size = Vector3.new(0.8, 2.5, 0.8)
	L_172_.Transparency = 0.0	
	
	local L_173_ = Instance.new("Motor6D")
	L_173_.Part0 = L_172_
	L_173_.Part1 = L_3_:FindFirstChild("Left Arm")
	L_173_.C0 = CFrame.new()
	L_173_.C1 = CFrame.new()
	L_173_.Parent = L_172_	
	L_172_.Parent = Arms
end

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

local L_132_

function CreateShell()
	L_132_ = time()
	local L_177_ = L_1_.Shell:clone()
	if L_177_:FindFirstChild('Shell') then
		L_177_.Shell:Destroy()
	end
	L_177_.CFrame =  L_1_.Chamber.CFrame
	L_177_.Velocity = L_1_.Chamber.CFrame.lookVector * 30 + Vector3.new(0, 4, 0)
	--shell.RotVelocity = Vector3.new(-10,40,30)
	L_177_.Parent = L_98_
	L_177_.CanCollide = false
	game:GetService("Debris"):addItem(L_177_, 1)
	delay(0.5, function()
		if L_19_:FindFirstChild('ShellCasing') then
			local L_178_ = L_19_.ShellCasing:clone()
			L_178_.Parent = L_2_.PlayerGui
			L_178_:Play()
			game:GetService('Debris'):AddItem(L_178_, L_178_.TimeLength)
		end
	end)
end
