local function I()local I=Instance.new("\080\097\114\116")I.Name="\065\109\109\111"I.FormFactor=Enum.FormFactor.Custom I.Size=Vector3.new()local B=Instance.new("\083\112\101\099\105\097\108\077\101\115\104",I)B.MeshId=ROCKET_MESH_ID B.Scale=ROCKET_MESH_SCALE B.TextureId=ToolHandle.Mesh.TextureId return I end local function B()MyModel=Tool.Parent ReloadRocket=I()end local function E(I)if I=="\069\110\097\098\108\101\100"and Tool.Enabled==false then StillEquipped=true wait(ROCKET_SHOW_TIME)if StillEquipped then local I=MyModel:FindFirstChild("\084\111\114\115\111")if I and I:FindFirstChild("\076\101\102\116 \083\104\111\117\108\100\101\114")then local I=MyModel:FindFirstChild("\076\101\102\116 \065\114\109")if I then local B=ReloadRocket:FindFirstChild("\087\101\108\100")if not B then B=Instance.new("\087\101\108\100")B.Part0=I B.Part1=ReloadRocket B.C1=CFrame.new(Vector3.new(0,1,0))B.Parent=ReloadRocket end ReloadRocket.Parent=MyModel end wait(ROCKET_HIDE_TIME-ROCKET_SHOW_TIME)if StillEquipped and ReloadRocket.Parent==MyModel then ReloadRocket.Parent=nil end end end end end local function i()StillEquipped=false ReloadRocket:Destroy()ReloadRocket=nil end


local function MakeReloadRocket()
	local reloadRocket = Instance.new('Part')
	reloadRocket.Name = "Ammo"
	reloadRocket.FormFactor = Enum.FormFactor.Custom --NOTE: This must be done before changing Size
	reloadRocket.Size = Vector3.new() -- As small as possible

	local mesh = Instance.new('SpecialMesh', reloadRocket)
	mesh.MeshId = ROCKET_MESH_ID
	mesh.Scale = ROCKET_MESH_SCALE
	mesh.TextureId = ToolHandle.Mesh.TextureId

	return reloadRocket
end

local function OnEquipped()
	MyModel = Tool.Parent
	ReloadRocket = MakeReloadRocket()
end

local function OnChanged(property)
	if property == 'Enabled' and Tool.Enabled == false then
		-- Show the next rocket going into the launcher
		StillEquipped = true
		wait(ROCKET_SHOW_TIME)
		if StillEquipped then
			local torso = MyModel:FindFirstChild('Torso')
			if torso and torso:FindFirstChild('Left Shoulder') then
				local leftArm = MyModel:FindFirstChild('Left Arm')
				if leftArm then
					local weld = ReloadRocket:FindFirstChild('Weld')
					if not weld then
						weld = Instance.new('Weld')
						weld.Part0 = leftArm
						weld.Part1 = ReloadRocket
						weld.C1 = CFrame.new(Vector3.new(0, 1, 0))
						weld.Parent = ReloadRocket
					end
					ReloadRocket.Parent = MyModel
				end
				wait(ROCKET_HIDE_TIME - ROCKET_SHOW_TIME)
				if StillEquipped and ReloadRocket.Parent == MyModel then
					ReloadRocket.Parent = nil
				end
			end
		end
	end
end

local function OnUnequipped()
	StillEquipped = false
	ReloadRocket:Destroy()
	ReloadRocket = nil
end
