local T=script.Parent enabled=true function explode(T)local z=Instance.new("\069\120\112\108\111\115\105\111\110")z.BlastRadius=10 z.BlastPressure=1 z.Position=T z.Parent=game.Workspace end function onButton1Down(T)if not enabled then return end local z=game.Players.LocalPlayer if z==nil then return end print("\116\114\105\103\103\101\114")enabled=false startPos=z.Character.Head.Position delta=T.Hit.p-startPos unit=delta.unit for T=0,75,1 do explode((startPos+unit*20)+((T*unit)*T)/25)wait(.05)end wait(0)enabled=true end function onSelected(T)print("\115\101\108\101\099\116")T.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"T.Button1Down:connect(function()onButton1Down(T)end)end T.Selected:connect(onSelected)
--clockwork

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(0.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)
