Universal Script 📌
14.1k Views
42 Executions

Native Roblox Popup

Universal Script 📌
r7pha
r7pha
Verified Badge
Verified User
10K executions
1 year ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

idk

View Raw
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()


Comments

2
Log in to join the conversation. Login
v1nnz's profile picture
v1nnz1 year ago

Gurt yo

1
zxcv's profile picture
zxcv1 year ago

10/10!

1

Tags

More universal scripts

See all
Script hub
178.8k
1.7M
Bumped 2 hours ago
Key System
Universal Script 📌
9.1k
31.5k
Bumped 3 hours ago
Script hub
49.8k
12.3k
Bumped 4 hours ago
Key System
Paid
Script hub
5.5M
1.1M
Bumped 9 hours ago
Key System
Script hub
20.6k
4.0k
Bumped 9 hours ago
Key System
Paid
Universal Script 📌
717
209
Approved 15 hours ago
Universal Script 📌
622
2.5k
Approved 15 hours ago
Universal Script 📌
582
586
Approved 15 hours ago