robloxOS - Roblox in Roblox

So I’ve seen people try to create Roblox in Roblox but it wasn’t what I expected. It either was like a Roblox game inside of a SurfaceGui or was just some random obby. Over the past 5 days I tried to recreate Rolobx UI in Roblox

Features:

Home page

The homepage is the screen you begin on, showing up to 1,000 of your connections and their presence status. It additionally displays 5 rows of the Charts page.


Charts

The charts page displays 26 rows of categories of popular games, each of them consisting of 30 experiences. The UI for each game consists of the game icon, name, rating, active player count, and maturity label. Additionally the icon will change size and will react smoothly to your input. Just like the Roblox app UI. Honestly I’ve never really been a fan of Roblox’s mouse events so I had to create my own.


Search

When using the search bar at the top, it will automatically suggest relevant phrases after 0.2 seconds of inactivity which then you can click on to search. When searching, you get to choose between experiences, communities, and users.

  • Experiences: loads up to 40
  • Communities: loads up to 25
  • Connections: loads up to 99

Inspect Experience

You can click on any experience to view it

  • Loads top 30 servers
  • Loads favorites
  • Loads likes (upvotes)
  • Loads playing count
  • Loads created date
  • Loads updated date
  • Loads gamepasses
  • Loads game description
  • Loads creator (either user/group) which then you can hover/click to inspect
  • Loads 3 additional rows of other random games
    (don’t mind the weird avatar bug; it’s fixed now)

Inspect Community

  • Loads up to 1,000 members
  • Loads ranks
  • Member count/publicly accessible
  • +More
    Check either the above or below video for this

Inspect Profile

  • Loads up to 1,000 connections
  • Loads connection count
  • Loads follower count
  • Loads following count
  • Loads up to 1,000 followers
  • Loads up to 1,000 followings
  • Loads all groups the user is in
  • Loads all created games
  • Loads all favorited games
  • Loads place stats/creation date/profile description/banned status
  • Loads avatar
  • Loads inventory

Play the game as everything isn’t covered here! Also report any bugs if you find any. Failed HTTP requests automatically forward to the client in the console.

17 Likes

What un*mployment looks like

My main question: why?

1 Like

I wanted to learn the API endpoints.

Sorry I don’t have a j*b

4 Likes

This makes a lot more sense. I thought you were doing it for fun lol

The UI was for fun/learning since I am kinda bad at it.

Personally I really like the UI design, and I do see why you’d wanna experiment with endpoints and all that so may as well!

Really great work with this though!

I added some updates–

  • Refreshed icons
  • Displays all game’s thumbnails
  • Faster loading
  • Bug fixes

And a lot more!

If the game gets 250 visits (21 more) in the next week I’ll add directly searching by username so you can view banned users – this is actually already 100% supported except Roblox’s search API doesn’t show banned users

Another update for y’all!

New stuff:

  • View locked communities (via GroupId)
  • View terminated users (via Username)
  • Dynamically load up to 1,500 games per category as you scroll
1 Like

Just added more:

1 Like

Really nice work, keep it up! :fire:

Not sure but this weekend I may try to introduce the new group forums into it

1 Like


How did you get the textbox to react to the length of the text? im curious since i’ve been wanting to make this a feature in some ui i’ve done

1 Like

It is just AutomaticSize with a UISizeConstraint (pixels)

Basically through time, what I’ve learned is to never use scale for anything and make my UI 100% in pixels and then use the UIScale Instance to scale the UI down/up for devices. This is because the UIScale will scale everything while still keeping the UI in pixels, allowing you to use AutomaticSize (property of all GuiObjects). Additionally I use a UIPadding Instance as a child of the TextLabel so the text isn’t exactly at the edge. The UI in the image you attached has a TextBox that has size set to 0,0,0,0 and has AutomaticSize set to XY. It also has a UIPadding (0,12) as a child of the TextBox. This way it will get bigger on the X axis and Y axis as the text increases. But wait, we don’t want the text to go forever to the right, so I add a UISizeConstraint and setting the max size to something like (196,inf) ← in pixels. This means that after the textbox X size is 196 pixels, it is forced to go down to the next line

Btw I didn’t use a UIScale for the UI featured above so it will take up larger amounts screen space on smaller devices.

here is a place file with the UI featured above

2 Likes

That’s the most ridicilous idea lol

Imagine being sued by copying Roblox… literally in Roblox

I mean it looks awesome! Pretty much as the original Roblox app, but maybe like with some exceptions like game and group pages I think, I only use browser version. Gotta use it everytime when it comes out for public use

image
wowwwww lol

Also this is definitely a neat way of going about it, I’m going to build some ui with this approach and see how it goes, thank you for the idea and reference :slight_smile:

Also whats the formula you use for updating UIScale?

1 Like

So if you end up using a UIScale, I would first suggest using a UIAspectRatio.

  1. Hardcode the reference screen size (the size of your viewportsize in studio)
  2. Update the UIScale

Example (this script may not be 100% accurate):

local Gui = script.Parent :: ScreenGui
local ReferenceSize = Vector2.new(1127, 772) -- Just happened to be my viewport size in studio print(workspace.CurrentCamera.ViewportSize)
local Frame = Gui.Frame :: Frame
local UIScale = Frame.UIScale :: UIScale

local function update()
	local viewportSize = workspace.CurrentCamera.ViewportSize
	local yScale = viewportSize.Y / ReferenceSize.Y
	local xScale = viewportSize.X / ReferenceSize.X
	UIScale.Scale = math.min(yScale, xScale)
end

update()
workspace.CurrentCamera:GetPropertyChangedSignal("ViewportSize"):Connect(update)

I also suggest adjusting the UISizeConstraint’s MinSize so it isn’t too small on devices like phones

(Edit) Nevermind, it was a bug with my 9-slice, not automatic size.

This is an incredible resource, I’d like to see more games rendered in the search results

For some reason the omni search API can only give 40 results and setting the session id to a random UUID and using the next page token has always seemed to give the same 40 results on each page. I may just be doing something wrong

1 Like

Okay nevermind I found the error I was putting in the wrong parameter. Now it should load in 120 instead of 40. I haven’t published it yet because I’m working on other features

1 Like