Dialog Pop-up Module (BETA)

Hello! I made a module that you can make a dialog pop-up without manually making and scripting the GUI. I just started making it and it is not done, so feel free to report bugs and suggestions!

Require the module in a server script


local Dialog = require(5053819789) -- Requires the module in your game

Then, create the dialog with the title, description, and player.

local Dialog = require(5053819789) -- Requires the module in your game
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(plr)
     local MyDialog = Dialog:Create("Title","Description",plr)

end)

This will automatically make the GUI but it won’t show! Add this to show the dialog.

local Dialog = require(5053819789) -- Requires the module in your game
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(plr)

     local MyDialog = Dialog:Create("Title","Description",plr)
     MyDialog:Show()
end)

To Make a button use

local Button = MyDialog:AddButton("name")

To set a click function to the button use this

Button:SetClickFunction(function()
     -- Code
end)

Make sure to include this in your PlayerAdded function.

More things include

  • MyDialog:SetTitle(“title”)
  • MyDialog:SetDescription(“Desc”)
  • MyDialog:Hide()
  • MyDialog:Show()
  • MyDialog:Destroy()
  • MyDialog:SetBlurEnabled(boolean)
  • MyDialog:SetBackgroundColor3(Color3)
  • MyDialog:SetForegroundColor3(Color3)

I did not use metatables in my module script.

I just allowed the source to be viewed. Sorry about that!
People were looking for images! I’m sorry about that too.
Annotation 2020-05-19 181720
Here is a image of the dialog with the background color is 255,255,255 and foreground 0,0,0.

Link
https://www.roblox.com/library/5053819789/Dialog-MainModule

14 Likes

Screenshots? And link to your module as us developers want to know whats getting put in our game.

2 Likes

It would of been awesome if I could see a GIF or some sort of Image would be good.

2 Likes

For people wondering if a module can be trusted, you can install any module from the toolbox with InsertService, Roblox will prohibit all modules from loading in external scripts if they are private

Run this in the command bar to insert the required module

game:GetService("InsertService"):LoadAsset(5053819789).Parent = workspace

ps, your module wont work in external games because it’s private, you may want to fix that

2 Likes

Hey guys. I founded the module through the require function. Here is the module:

https://www.roblox.com/library/5053819789/Dialog-MainModule

1 Like