local e=script.Parent.Parent local S=script.Parent:WaitForChild("\080\101\112\112\101\114\083\112\114\097\121\069\118\101\110\116")S.OnServerEvent:connect(function(S,c,Y,R,w)if c=="\066\117\116\116\111\110\049\068\111\119\110"then e.Spray.Transparency=1 e.Spray.Script.Disabled=false e.Nossle.Spray.Enabled=true e.Nossle.Sound:Play()elseif c=="\066\117\116\116\111\110\049\085\112"then e.Spray.Transparency=1 e.Spray.Script.Disabled=true e.Nossle.Spray.Enabled=false e.Nossle.Sound:Stop()end end)

local tool = script.Parent.Parent
local event = script.Parent:WaitForChild("PepperSprayEvent")

event.OnServerEvent:connect(function(plr,event,arg1,arg2,arg3)
	if event == "Button1Down" then
		tool.Spray.Transparency = 1
		tool.Spray.Script.Disabled = false
		tool.Nossle.Spray.Enabled = true
		tool.Nossle.Sound:Play()
	elseif event == "Button1Up" then
		tool.Spray.Transparency = 1
		tool.Spray.Script.Disabled = true
		tool.Nossle.Spray.Enabled = false
		tool.Nossle.Sound:Stop()
	end
end)
