How to make an exploding object in Roblox Studios

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • local bomb = script.Parent
    local clickDetector = bomb:FindFirstChildOfClass("ClickDetector")
    local function detonateBomb()
    -- Create an explosion
    local explosion = Instance.new("Explosion")
    explosion.Position = bomb.Position
    explosion.BlastRadius = 10
    explosion.BlastPressure = 50000
    explosion.Parent = bomb.Parent
    -- Destroy the bomb after detonation
    bomb:Destroy()
    end
    clickDetector.MouseClick:Connect(detonateBomb)

Комментарии • 1

  • @Nickdevv
    @Nickdevv Месяц назад +1

    first muehehehe