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)