Remotes.Main1.OnServerEvent:Connect(function(a,x)local B=a local Z=B.Character for a,B in pairs(GetTable)do if x==a then if Z:FindFirstChild(a)==nil then local x=Weapons[a]:Clone()x.Parent=Z if x.WielderType.Value==B.WielderType then local q=Instance.new("\077\111\116\111\114\054\068")q.Part0=Z["\082\105\103\104\116 \065\114\109"]q.Part1=x.Handle q.C0=B.WeldCFrame q.Parent=Z["\082\105\103\104\116 \065\114\109"]q.Name=a Name=a end end end end if x=="\085\110\101\113\117\105\112"then pcall(function()Z[Name]:Destroy()end)end end)

Remotes.Main1.OnServerEvent:Connect(function(plr,firingtype)
	local LocalPlayer = plr
	local Character   = LocalPlayer.Character
	for GetType,_ in pairs(GetTable) do
		if firingtype == GetType then
			--LocalPlayer.PlayerGui.ScreenGui.Folder[Slots].Value = true
			
			--if LocalPlayer.PlayerGui.ScreenGui.Folder[Slots].Value then
				
			if Character:FindFirstChild(GetType) == nil then
			local FindWeapons = Weapons[GetType]:Clone()
				FindWeapons.Parent = Character
			if FindWeapons.WielderType.Value == _.WielderType then
				
				local DefineWeldings = Instance.new("Motor6D")
				DefineWeldings.Part0 = Character["Right Arm"]
				DefineWeldings.Part1 = FindWeapons.Handle
				DefineWeldings.C0 = _.WeldCFrame
				DefineWeldings.Parent = Character["Right Arm"]
				DefineWeldings.Name = GetType
				Name = GetType
				end
			end
		end
	end
	
	if firingtype == "Unequip" then
		pcall(function()
			Character[Name]:Destroy()
		end)
	end
end)
