Instead of having to wait a few seconds for a prompt to close and return the user’s response, it will now do it instantly! This should make roPrompts feel even more seamless. If you have any suggestions, feedback, or comments, please leave a reply or join the Discord Server.
I like it a lot! I love making my ui fit well with roblox, as if you look at basically any projects i’ve done relating to ui I always try making it seamless with the leaderboard and top bar and stuff like that
If only roblox updated the chat and backpack ui, then it would look great
Hello! I love this resource a lot and I think it’s really nice what you’ve done here however I have to let you know that this system is very controversial.
You make your system look identical to a Roblox Core UI prompt and although this is nice, it raises a very big security issue. That issue is users using this maliciously for password phising via webhook, model insertion via plugin, and so on. I really recommend changing this as this resource may put other users at harm.
I’m aware of the malicious intentions that some users may have with roPrompts. I’ve implemented and will continue to implement different systems to try and avoid as much of this as possible. I thought about adding a text value prompt, that would prompt users for text, but decided against this as this would result in a crap-ton of scams that I really don’t want this to be used for scams. Thanks!
This can only be used on the client. I used a RemoteFunction to make it so if you clicked a button on the client, it would go to the server, and then you could continue from the client. I haven’t published the source code on GitHub because the model includes all of the source code. Thanks for your support!
That’s strange. Can I see your code? Here’s the code that I used for testing it (and it only did it once):
game.ReplicatedStorage.roPrompts.OnServerEvent:Connect(function(plr)
local prompt = roPrompts.New({
Type = roPrompts.PromptType.Confirm,
Title = 'Are you sure?',
Description = 'Are you sure you would like to complete this action?',
PrimaryButton = 'Confirm',
SecondaryButton = 'Cancel'
})
print(roPrompts:PromptPlayer(plr, prompt)) -- prints true/false depending on what they chose, once
end)
Fixed a bug where the UI would sometimes glitch if you pressed a button and the animation hadn’t finished. This should make the UI feel even more seamless with all of your games. If you have any suggestions, feedback, or comments, please leave a reply or join the Discord Server.
I figured out what the problem is. It was bc as a test I was having the prompt trigger when the player stepped on a part. What I’m thinking is that the Touched event triggered multiple times causing the true or false check to run more than one time.
local roPrompts = require(game.ReplicatedStorage.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
})
script.Parent.Touched:Connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
roPrompts:PromptPlayer(player, prompt) -- Prompt player
if roPrompts:PromptPlayer(player, prompt) then
print("If you see this it worked!")
end
end)
I then replaced it with a click detector and now its only happening once. Sorry for the confusion lol.
Sometimes (but not often) it doesn’t print
and sometimes it prints twice when the button was only pressed once. (Mabey to make up for the time it didn’t print?)