Universal Script 📌
14.1k Views
28 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
Universal Script 📌
6.1k
17.8k
Bumped 3 hours ago
Key System
Universal Script 📌
531.6k
336.7k
Bumped 4 hours ago
Script hub
2.5k
2.2k
Bumped 5 hours ago
Key System
Universal Script 📌
467
37
Approved 5 hours ago
Script hub
2.8M
661.6k
Bumped 6 hours ago
Key System

Script hub

#2 today

Verified script badgeFlow Hub | 35 Games | Updated