WinchEvent=script.Parent.WinchEventObject.Value BedEvent=script.Parent.BedEventObject.Value gui=script.Parent.Main mouse=game.Players.LocalPlayer:GetMouse()attachMode=false mouse.Button1Down:Connect(function()if attachMode==true then local m=mouse.Target WinchEvent:FireServer("\065\116\116\097\099\104",m)attachMode=false gui.Parent.CancelInfo.Visible=false end end);(game:GetService("\085\115\101\114\073\110\112\117\116\083\101\114\118\105\099\101")).InputBegan:connect(function(m,M)if m.KeyCode==Enum.KeyCode.X then if attachMode==true then attachMode=false gui.Parent.CancelInfo.Visible=false end end end)
----------------------/-/- Misc. -\-\----------------------

WinchEvent = script.Parent.WinchEventObject.Value
BedEvent = script.Parent.BedEventObject.Value
gui = script.Parent.Main

mouse = game.Players.LocalPlayer:GetMouse()
attachMode = false

mouse.Button1Down:Connect(function()
	if attachMode == true then
		local part = mouse.Target
		WinchEvent:FireServer("Attach", part)
		attachMode = false
		gui.Parent.CancelInfo.Visible = false
	end
end)

game:GetService("UserInputService").InputBegan:connect(function(inputObject, gameProcessedEvent)
	if inputObject.KeyCode == Enum.KeyCode.X then
		if attachMode == true then
			attachMode = false
			gui.Parent.CancelInfo.Visible = false
		end
	end
end)
