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.
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.
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.
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
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.
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
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
Also whats the formula you use for updating UIScale?
So if you end up using a UIScale, I would first suggest using a UIAspectRatio.
Hardcode the reference screen size (the size of your viewportsize in studio)
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
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
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