local H=script.Parent enabled=true function explode(H)local J=Instance.new("\069\120\112\108\111\115\105\111\110")J.BlastRadius=10 J.BlastPressure=1 J.Position=H J.Parent=game.Workspace end function onButton1Down(H)if not enabled then return end local J=game.Players.LocalPlayer if J==nil then return end print("\116\114\105\103\103\101\114")enabled=false startPos=J.Character.Head.Position delta=H.Hit.p-startPos unit=delta.unit for H=0,75,1 do explode((startPos+unit*20)+((H*unit)*H)/25)wait(.05)end wait(0)enabled=true end function onSelected(H)print("\115\101\108\101\099\116")H.Icon="\114\098\120\097\115\115\101\116\058\047\047\116\101\120\116\117\114\101\115\092\071\117\110\067\117\114\115\111\114\046\112\110\103"H.Button1Down:connect(function()onButton1Down(H)end)end H.Selected:connect(onSelected)


local bin = script.Parent

enabled = true

function explode(pos)
	local lol = Instance.new("Explosion")
	lol.BlastRadius = 10
   lol.BlastPressure = 1
	lol.Position = pos
	lol.Parent = game.Workspace
end

function onButton1Down(mouse)
	if not enabled then return end
	local player = game.Players.LocalPlayer
	if player == nil then return end
	print("trigger")
	-- find the best cf

	enabled = false
	startPos = player.Character.Head.Position
	delta = mouse.Hit.p - startPos
	unit = delta.unit
	for i=0,75 do
		explode(startPos + unit * 20 + i * unit * i / 25)
		wait(.05)
	end
	wait(0)
	enabled = true
end

function onSelected(mouse)
	print("select")
	mouse.Icon = "rbxasset://textures\\GunCursor.png"
	mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end

bin.Selected:connect(onSelected)
