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.
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