function onActivated()local M=Tool.Parent local Z=M.Humanoid if Z==nil then print("\072\117\109\097\110\111\105\100 \110\111\116 \102\111\117\110\100")return end local U=Z.TargetPoint local v=(U-M.Head.Position).unit fire(v)end while true do script.Parent.Activated:wait()connection=(game:service("\082\117\110\083\101\114\118\105\099\101")).Stepped:connect(onActivated)wait(2)end

function onActivated()

	--if not Tool.Enabled then
	--	return
	--end

	--Tool.Enabled = false

	local character = Tool.Parent;
	local humanoid = character.Humanoid
	if humanoid == nil then
		print("Humanoid not found")
		return 
	end

	local targetPos = humanoid.TargetPoint
	local lookAt = (targetPos - character.Head.Position).unit

	fire(lookAt)

	--wait(2)

	--Tool.Enabled = true
end

while true do
script.Parent.Activated:wait()
connection = game:service("RunService").Stepped:connect(onActivated)
wait(2)
end

