ToolChanged=RbxUtility.CreateSignal()function EquipTool(n)if CurrentTool and CurrentTool.Equipped then CurrentTool.Unequip()CurrentTool.Equipped=false end CurrentTool=n CurrentTool.Equipped=true ToolChanged:fire(n)n.Equip()end function RecolorHandle(n)SyncAPI:Invoke("\082\101\099\111\108\111\114\072\097\110\100\108\101",n)end

ToolChanged = RbxUtility.CreateSignal();

function EquipTool(Tool)
	-- Equips and switches to the given tool

	-- Unequip current tool
	if CurrentTool and CurrentTool.Equipped then
		CurrentTool.Unequip();
		CurrentTool.Equipped = false;
	end;

	-- Set `Tool` as current
	CurrentTool = Tool;
	CurrentTool.Equipped = true;

	-- Fire relevant events
	ToolChanged:fire(Tool);

	-- Equip the tool
	Tool.Equip();

end;

function RecolorHandle(Color)
	SyncAPI:Invoke('RecolorHandle', Color);
end;
