Native Roblox Popup
Key RequiredUniversal

Native Roblox Popup

Universal Scriptr7phar7pha 14.1K views 26 executesUpdated Jun 26, 2025
4.0/ 5(5 votes)
4180% Positive
Lua Script•55 lines (1365 chars)
local CreateInstance = function(InstanceType, Properties, Children)
    local Object = Instance.new(InstanceType)

    for Key, Value in next, Properties or {} do
        Object[Key] = Value
    end

    for _, Child in next, Children or {} do
        Child.Parent = Object
    end

    return Object
end

local DisplayPopup = function(Title, Message, UseCoroutine)
    if not getrenv then
        return warn(Message)
    end

    local ErrorModule = getrenv().require(
        game.CoreGui:WaitForChild("RobloxGui")
                    :WaitForChild("Modules")
                    :WaitForChild("ErrorPrompt")
    )

    local Prompt = ErrorModule.new("Default", { HideErrorCode = true })
    local ErrorGui = CreateInstance("ScreenGui", {
        Parent = game.CoreGui,
        ResetOnSpawn = false
    })

    local CurrentCoroutine = UseCoroutine and coroutine.running()

    Prompt:setParent(ErrorGui)
    Prompt:setErrorTitle(Title)
    Prompt:updateButtons({{
        Text = "ok",
        Callback = function()
            Prompt:_close()
            ErrorGui:Destroy()
            if CurrentCoroutine then
                coroutine.resume(CurrentCoroutine)
            end
        end,
        Primary = true
    }}, "Default")

    Prompt:_open(Message)

    if CurrentCoroutine then
        coroutine.yield()
    end
end

DisplayPopup("yo", "gurt", true)

Features & Information

idk
#boblox

Community Comments (2)

zxcvzxcvJun 26, 2025

10/10!

v1nnzv1nnzJun 26, 2025

Gurt yo

More Scripts for Universal Scripts