How to make a rePhone app

Hello! This will show you how to make a rePhone app.
Below is the source for the “Clock” app in the rePhone store.

local module = {}
function module:RunApp(config,uilib,appHandler, oslib)
	uilib:ClearScreen() 
	uilib:DrawText("Time when opened:")
	uilib:DrawText(os.date("%X",os.time()))
	local exitButton = uilib:DrawButton("Exit") 
	exitButton.AnchorPoint = Vector2.new(0,1) 
	exitButton.Position = UDim2.new(0,0,1,0) 
	exitButton.MouseButton1Click:Connect(function() require(appHandler):StartApp(require(oslib.Launcher)) end)
end
return module

As you can see, it is very basic. You just save the app as a module script and make it on sale.
You want to copy the the Clock source and remove both of the “uilib:DrawText” lines. Then you add all of your code in the middle of the ClearScreen() and the exitButton.

Here is the UI Library you can use, you can also make your own if you want but it would be hard.

uilib:DrawText(text,name,parent)
Both Text and Name are strings, Parent is a location like game.Workspace. Both name and parent should be left nil unless you need to fill them in.
It returns the TextLabel it creates

uilib:DrawButton(text,name,parent)
Both Text and Name are strings, Parent is a location like game.Workspace. Both name and parent should be left nil unless you need to fill them in.
It returns the TextButton it creates

uilib:DrawTextBox(placeholdertext,name)
Both PlaceholderText and Name are strings, Parent is a location like game.Workspace. name should be left nil unless you need to fill it in.
It returns the TextBox it creates

config.DeviceScreen
The device screen

config.Device
This variable is the root directory of your rePhone

How to use the rePhone Emulator

The rePhone emulator is a studio plugin for testing apps. It runs the normal restoreOS that the version on your phone runs. Press “Toggle Emulator” to toggle the view. Press “Reset Emulator” to simulate a rejoin and remove all of your apps. “Copy Apps” was removed because I made it automatically detect the apps in AppsFolder when in studio edit mode.

rePhone runs serversided so I need to make the servers 1 person to prevent bugs and so I can have you make your own apps!
https://www.roblox.com/library/6919782969/rePhone-Emulator
https://www.roblox.com/games/6906180312

2 Likes