Discord | Model
What is roPrompts?
roPrompts is a prompt system for Roblox that was created to take the effort out of creating seamless prompts that look great in all of your games. With roPrompts, you can create beautiful prompts that look good in all types of games and seamlessly meshes with Roblox UI.
What does it look like?
Confirmation Prompt
*Includes anti-scam message
Okay Prompt
*Includes anti-scam message
Why not my own?
There are many reasons that roPrompts is the best prompt system available. Here are a few:
ā¢ It blends in seamlessly with all Roblox UI
ā¢ Itās easy to set up and easy to use
ā¢ It can be used in all sorts of different situations (resetting data, running important commands, etc.)
ā¢ And so much more!
What does the code look like?
The code for roPrompts was designed with ease of use and simplicity in mind. Hereās an example of prompt code:
local roPrompts = require(roPrompts) -- Require roPrompts
local prompt = roPrompts.New({ -- Create a prompt object
Type = roPrompts.PromptType.Confirm, -- Define what type of prompt you want
Title = 'Confirm Action', -- Title of the prompt
Description = 'Are you sure you would like to do this action?', -- Description of the prompt
PrimaryButton = 'Confirm', -- Main button of the prompt
SecondaryButton = 'Cancel' -- Secondary/cancel button of the prompt
})
roPrompts:PromptPlayer(player, prompt) -- Prompt player
API
New Prompt Object
To create a new prompt object, you use the function roPrompts.new(). Hereās an example of a prompt object:
local prompt = roPrompts.New({ -- Create a prompt object
Type = roPrompts.PromptType.Confirm, -- Define what type of prompt you want
Title = 'Confirm Action', -- Title of the prompt
Description = 'Are you sure you would like to do this action?', -- Description of the prompt
PrimaryButton = 'Confirm', -- Main button of the prompt
SecondaryButton = 'Cancel' -- Secondary/cancel button of the prompt
})
Type
Required
Prompt Type Value (ex: roPrompts.PromptType.Comfirm)
Title
Required
String/text
Description
Required
String/text
PrimaryButton
Not required [default Confirm/Okay]
String/text
The primary/main button for the prompt
SecondaryButton
Not required [default Cancel]
String/text
The secondary/cancel button
Image
Not required
Image ID w/ rbxassetid (ex: ārbxassetid://7072706620ā)
ā
Sending a prompt
To send a prompt, you use the function roPrompts:PromptPlayer(). Example:
roPrompts:PromptPlayer(player, prompt)
Player
Required
Instance Player
Prompt
Required
Prompt Object (see above)
Returns
Boolean value [true/false]
Why havenāt I used it yet?
Good question! Here are some important links for roPrompts:
Model
Discord
Questions? Comments? Concerns?
If you have anything to ask me, please ask in the comments below or in our Discord server (preferred). I hope you enjoy using roPrompts!