local L=game:GetService("\080\108\097\121\101\114\115")local C=L.LocalPlayer local u=C:GetMouse()local M=script.Parent local a=M:WaitForChild("\070\105\114\101")local I=(M:WaitForChild("\067\111\111\108\100\111\119\110")).Value local x=0 M.Activated:Connect(function()local L=tick()if L-x>I then x=L local M=C.Character if M and M.PrimaryPart then local L=M.PrimaryPart.Position local C=u.Hit.p a:FireServer(L,C)end end end)

local Players = game:GetService("Players")

local localPlayer = Players.LocalPlayer
local mouse = localPlayer:GetMouse()

local tool = script.Parent
local fireEvent = tool:WaitForChild("Fire")
local cooldown = tool:WaitForChild("Cooldown").Value

local lastThrow = 0
tool.Activated:Connect(
	function()
		local nowTick = tick()
		if nowTick - lastThrow > cooldown then
			lastThrow = nowTick
			local character = localPlayer.Character
			if character and character.PrimaryPart then
				local origin = character.PrimaryPart.Position
				local target = mouse.Hit.p
				fireEvent:FireServer(origin, target)
			end
		end
	end
)
