local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local function createExplosion(position)
local explosion = Instance.new("Explosion")
explosion.Position = position
explosion.BlastRadius = 20 -- Adjust as needed
explosion.BlastPressure = math.huge
explosion.Parent = workspace
end
local function onActivated()
local tool = script.Parent
tool.Activated:Connect(function()
local mouse = player:GetMouse()
local hitPosition = mouse.Hit.Position
createExplosion(hitPosition)
end)
end
local function createTool()
local tool = Instance.new("Tool")
tool.Name = "InstaKillTool"
tool.RequiresHandle = false -- Ensures the tool doesn't have a handle
-- Attach the activation function
tool.Activated:Connect(onActivated)
-- Attach the tool to the character's Backpack
tool.Parent = player.Backpack
end
createTool()