local G=game:GetService("\080\108\097\121\101\114\115")local N=G.LocalPlayer local t=N:GetMouse()local c=script.Parent local j=c:WaitForChild("\070\105\114\101")local W=(c:WaitForChild("\067\111\111\108\100\111\119\110")).Value local v=0 c.Activated:Connect(function()local G=tick()if G-v>W then v=G local c=N.Character if c and c.PrimaryPart then local G=c.PrimaryPart.Position local N=t.Hit.p j:FireServer(G,N)end end end)
--[[
    Client side script that requests a bomb throw if the player activates their tool outside of cooldown
]]
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)
