Quick actions

cmd+k|ctrl+k

Navigation

Languages

Roblox browser

Snippet info

Language

Lua

Visibility

public

Author

shashlik

Created

2025-10-12T21:55:00.976214Z

Updated

2025-10-12T23:29:33.200731Z


browser = function(url, name)
    local targetUrl = tostring(url or "about:blank")
    local targetName = tostring(name or "Browser")
    
    local info = { 
        presentationStyle = 2, 
        url = targetUrl, 
        title = targetName, 
        visible = true 
    }
    
    local success, msg = pcall(function()
        return game:GetService("HttpService"):JSONEncode(info)
    end)
    
    if success then
        game:GetService("GuiService"):BroadcastNotification(msg, 20)
        return true
    else
        return false
    end
end
INFO