Explosion On Mouse Click

PHOTO EMBED

Sun Jan 19 2025 13:24:13 GMT+0000 (Coordinated Universal Time)

Saved by @citizen5ive #lua #roblox

local block = script.Parent

local function Health(player)
    local Humanoid = player.Character:FindFirstChild("Humanoid")
    if Humanoid then
        wait(0.5)
        local expl = Instance.new('Explosion')
        expl.Position = block.Position
        expl.BlastPressure = 20
        expl.Parent = game.Workspace
        Humanoid.Health = 0
    end
end

script.Parent.ClickDetector.MouseClick:Connect(Health)
content_copyCOPY

dodaj ClickDetector do obiektu z tym skryptem po kliknięciu w obiekt Humanoid eksploduje

https://tinyurl.com/2d6ol37z