local d=.25 local x=script.Parent local z local q=false script.ClientActivate.OnServerEvent:connect(function(N)if N==z and not q then q=true x.Handle.MoneyEmitter:Emit(10)game.ReplicatedStorage.Interactions.Client.PlaySound:FireClient(N,x.Handle:FindFirstChild("\083\111\117\110\100"..math.random(1,3)))wait(d)q=false end end)x.Equipped:connect(function()z=game.Players:GetPlayerFromCharacter(x.Parent)end)

local COOLDOWN = 0.25

local tool = script.Parent

local toolPlr
local debounce = false

script.ClientActivate.OnServerEvent:connect(function(plr)
	
	-- Check if tool is equipped and correct player
	if plr == toolPlr and not debounce then
		debounce = true
		
		-- Toggle
		tool.Handle.MoneyEmitter:Emit(10)
		game.ReplicatedStorage.Interactions.Client.PlaySound:FireClient(plr, tool.Handle:FindFirstChild("Sound" .. math.random(1, 3)))
		
		-- Cooldown
		wait(COOLDOWN)
		
		debounce = false
	end
	
end)

tool.Equipped:connect(function()
	
	-- Set tool player
	toolPlr = game.Players:GetPlayerFromCharacter(tool.Parent)
	
end)
