click.MouseClick:connect(function(j)if ready==true then ready=false click.MaxActivationDistance=0 coverdown()menuappear()local L=tool:clone()local u=handle:clone()L.Parent=sp.Temporary u.Parent=sp.Temporary u.CFrame=CFrame.new(Vector3.new(u.Position.X,u.Position.Y+1,u.Position.Z))for a,P in pairs(maingui:GetChildren())do if P:IsA("\084\101\120\116\066\117\116\116\111\110")then P.MouseButton1Down:connect(function()menudisappear()L.Name=P.Name for a,b in pairs(maingui:GetChildren())do if b:IsA("\070\114\097\109\101")and b.Name==P.Name then for a,P in pairs(b:GetChildren())do if P:IsA("\084\101\120\116\066\117\116\116\111\110")then P.Visible=true P.MouseButton1Down:connect(function()L.ToolTip=P.Name u.Parent=L u.Anchored=false L.Cup.Disabled=false L.Parent=j.Backpack coverup()for j,L in pairs(P.Parent:GetChildren())do if L:IsA("\084\101\120\116\066\117\116\116\111\110")then L.Visible=false end end click.MaxActivationDistance=10 wait(5)ready=true script.Fixer.Disabled=false end)end end end end end)end end end end)

click.MouseClick:connect(function(player)
	if ready == true then 
		ready = false
		click.MaxActivationDistance = 0
		coverdown()
		menuappear()
		local newtool = tool:clone()
		local newhandle = handle:clone()
		newtool.Parent = sp.Temporary
		newhandle.Parent = sp.Temporary
		newhandle.CFrame = CFrame.new(Vector3.new(newhandle.Position.X, newhandle.Position.Y+1,newhandle.Position.Z))
		
		for _,one in pairs(maingui:GetChildren()) do
				if one:IsA("TextButton") then
					one.MouseButton1Down:connect(function()
						menudisappear()
						newtool.Name = one.Name
						for _,frame in pairs(maingui:GetChildren()) do
							if frame:IsA("Frame") and frame.Name == one.Name then --lol this whole part though
								for _,button in pairs(frame:GetChildren()) do
									if button:IsA("TextButton") then
										button.Visible = true
										button.MouseButton1Down:connect(function()
											newtool.ToolTip = button.Name
											newhandle.Parent = newtool
											newhandle.Anchored = false
											newtool.Cup.Disabled = false
											newtool.Parent = player.Backpack
											coverup()
											for _,v in pairs(button.Parent:GetChildren()) do
												if v:IsA("TextButton") then
													v.Visible = false
												end
											end
											click.MaxActivationDistance = 10
											wait(5)
											ready = true
											script.Fixer.Disabled = false
										end)
									end
								end
							end
						end
					end)
				end
		end
	end
end)

