Tool=script.Parent mouse=game.Players.LocalPlayer:GetMouse()colors={45,119,21,24,23,105;104}function fire(G)script.Parent.fire:FireServer(G)end Tool.Enabled=true function onActivated()if not Tool.Enabled then return end Tool.Enabled=false local G=Tool.Parent local l=G.Humanoid if l==nil then print("\072\117\109\097\110\111\105\100 \110\111\116 \102\111\117\110\100")return end local E=l.TargetPoint local Y=(mouse.Hit.p-G.Head.Position).unit fire(Y)wait(.5)Tool.Enabled=true end script.Parent.Activated:connect(onActivated)
--Tool.Equipped:connect(OnEquipped)
--Tool.Changed:connect(OnChanged)

Tool = script.Parent
mouse = game.Players.LocalPlayer:GetMouse()

colors = { 45, 119, 21, 24, 23, 105, 104 }

function fire(v)
	script.Parent.fire:FireServer(v)
end

Tool.Enabled = true
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 = (mouse.Hit.p - character.Head.Position).unit

	fire(lookAt)

	wait(0.5)

	Tool.Enabled = true
end

script.Parent.Activated:connect(onActivated)
