event.OnServerEvent:connect(function(u,R,X)if u==owner then if R=="\116\104\114\111\119"and(canthrow and not canattack)then throwpos=X.p end if R=="\115\107\105\110"then spraysound:Play()skinnumber=skinnumber+1 if skinnumber>table.getn(skins)then skinnumber=0;(handle:findFirstChildOfClass("\083\112\101\099\105\097\108\077\101\115\104")).TextureId="\104\116\116\112\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\097\115\115\101\116\047\063\105\100\061\049\055\050\055\053\050\051\053\052"end for u=0,#skins,1 do if u==skinnumber and u~=0 then(handle:findFirstChildOfClass("\083\112\101\099\105\097\108\077\101\115\104")).TextureId=skins[u]end end end end end)tool.Activated:connect(function()pressed=true end)tool.Deactivated:connect(function()pressed=false end)

event.OnServerEvent:connect(function(player, what, where)
	if player == owner then
		if what == "throw" and canthrow and not canattack then
			throwpos = where.p
		end
		if what == "skin" then
			spraysound:Play()
			skinnumber = skinnumber + 1
			if skinnumber > table.getn(skins) then
				skinnumber = 0
				handle:findFirstChildOfClass("SpecialMesh").TextureId = "http://www.roblox.com/asset/?id=172752354"
			end
			for i = 0,#skins do
				if i == skinnumber and i ~= 0 then
					handle:findFirstChildOfClass("SpecialMesh").TextureId = skins[i]
				end
			end
		end
	end
end)
tool.Activated:connect(function()
	pressed = true
end)
tool.Deactivated:connect(function()
	pressed = false
end)