I have 2 scripts in a tool local and normal
Main(normal):
local tool = script.Parent
local handle = tool:WaitForChild("Handle")
local Storage = game:GetService("ReplicatedStorage")
local remoteEvent = Storage:WaitForChild("Explosion")
local at = 2
local function explo(player)
tool.Activated:Connect(function()
local mouse = player:GetMouse()
local expo = Instance.new("Explosion", workspace)
expo.Position = mouse.Hit.Position
wait(at)
expo:Destroy()
end)
end
remoteEvent.onServerEvent:Connect(explo)
local:
local tool = script.Parent
local handle = tool:WaitForChild("Handle")
local Player = game.Players.LocalPlayer
local mouse = Player:GetMouse()
local codwn = false
local at = 1
local qp = false
tool.Equipped:Connect(function()
qp = true
if qp ~= false then
mouse.Button1Down:Connect(function()
if codwn ~= true then
codwn = true
tool:Activate()
wait(at)
tool:Deactivate()
codwn = false
end
end)
end
end)
tool.Deactivated:Connect(function()
qp = false
end)
I tried to make it work with remote event called Explosion but didn't seem to work.

1 comment
at line 13 you should change into Button1Click or just ButtonClick try both of them