Custom Prompt Creater
Key RequiredUniversal

Custom Prompt Creater

Universal ScriptDarlI_17DarlI_17 7.6K views 108 executesUpdated Jan 12, 2025
5.0/ 5(1 votes)
10100% Positive
Lua Script•91 lines (4907 chars)
local function createPrompt(title, desc, underdesc, image, button, buttonx, btext, btextx)
        local plr = game.Players.LocalPlayer
        local char = game.Players.LocalPlayer.Character
        local plrgui = game.Players.LocalPlayer.PlayerGui

        local screen = Instance.new("ScreenGui")
        screen.Parent = plrgui
        screen.Name = "CustomPrompt"

        local frame = game:GetObjects("rbxassetid://90615844502035")[1]
        frame.Parent = screen

        local promptframe = frame.Prompt
        promptframe.AlertContents.TitleContainer.TitleArea.Title.Text = title
        promptframe.AlertContents.TitleContainer.TitleArea.Title.Size = UDim2.new(0, 300, 1, 0)
        promptframe.AlertContents.MiddleContent.Content.ItemName.Text = desc
        promptframe.AlertContents.MiddleContent.Content.ItemIcon.Image = image

        promptframe.AlertContents.Footer.FooterContent.Content.RemainingBalanceText.Text = underdesc

        promptframe.AlertContents.Footer.Buttons["1"].Visible = button
        promptframe.AlertContents.Footer.Buttons["2"].Visible = buttonx

        promptframe.AlertContents.Footer.Buttons["1"].ButtonContent.ButtonMiddleContent.Text.Text = btext
        promptframe.AlertContents.Footer.Buttons["1"].ButtonContent.ButtonMiddleContent.Text.Size = UDim2.new(0, 300, 1, 0)
        promptframe.AlertContents.Footer.Buttons["2"].ButtonContent.ButtonMiddleContent.Text.Text = btextx
        promptframe.AlertContents.Footer.Buttons["2"].ButtonContent.ButtonMiddleContent.Text.Size = UDim2.new(0, 300, 1, 0)

        promptframe.AlertContents.Footer.Buttons["2"].ButtonContent.ButtonMiddleContent.Icon:Destroy()

        promptframe.AlertContents.Footer.Buttons["1"].MouseButton1Click:Connect(function()
                screen:Destroy()
        end)
        promptframe.AlertContents.Footer.Buttons["2"].MouseButton1Click:Connect(function()
                screen:Destroy()
        end)
end

local function changeCreatedPrompt(title, desc, underdesc, image, button, buttonx, btext, btextx)
        local plr = game.Players.LocalPlayer
        local char = game.Players.LocalPlayer.Character
        local plrgui = game.Players.LocalPlayer.PlayerGui

        local screen = game.Players.LocalPlayer.PlayerGui.CustomPrompt

        local frame = screen.Animator

        local promptframe = frame.Prompt
        promptframe.AlertContents.TitleContainer.TitleArea.Title.Text = title
        promptframe.AlertContents.TitleContainer.TitleArea.Title.Size = UDim2.new(0, 300, 1, 0)
        promptframe.AlertContents.MiddleContent.Content.ItemName.Text = desc
        promptframe.AlertContents.MiddleContent.Content.ItemIcon.Image = image

        promptframe.AlertContents.Footer.FooterContent.Content.RemainingBalanceText.Text = underdesc

        promptframe.AlertContents.Footer.Buttons["1"].Visible = button
        promptframe.AlertContents.Footer.Buttons["2"].Visible = buttonx

        promptframe.AlertContents.Footer.Buttons["1"].ButtonContent.ButtonMiddleContent.Text.Text = btext
        promptframe.AlertContents.Footer.Buttons["1"].ButtonContent.ButtonMiddleContent.Text.Size = UDim2.new(0, 300, 1, 0)
        promptframe.AlertContents.Footer.Buttons["2"].ButtonContent.ButtonMiddleContent.Text.Text = btextx
        promptframe.AlertContents.Footer.Buttons["2"].ButtonContent.ButtonMiddleContent.Text.Size = UDim2.new(0, 300, 1, 0)
end

local function changePrompt(title, desc, underdesc, image, button, buttonx, btext, btextx)
        local plr = game.Players.LocalPlayer
        local char = game.Players.LocalPlayer.Character
        local plrgui = game.Players.LocalPlayer.PlayerGui

        local frame = game.CoreGui.PurchasePrompt.ProductPurchaseContainer.Animator

        local promptframe = frame.Prompt
        promptframe.AlertContents.TitleContainer.TitleArea.Title.Text = title
        promptframe.AlertContents.TitleContainer.TitleArea.Title.Size = UDim2.new(0, 300, 1, 0)
        promptframe.AlertContents.MiddleContent.Content.ItemName.Text = desc
        promptframe.AlertContents.MiddleContent.Content.ItemIcon.Image = image

        promptframe.AlertContents.Footer.FooterContent.Content.RemainingBalanceText.Text = underdesc

        promptframe.AlertContents.Footer.Buttons["1"].Visible = button
        promptframe.AlertContents.Footer.Buttons["2"].Visible = buttonx

        promptframe.AlertContents.Footer.Buttons["1"].ButtonContent.ButtonMiddleContent.Text.Text = btext
        promptframe.AlertContents.Footer.Buttons["1"].ButtonContent.ButtonMiddleContent.Text.Size = UDim2.new(0, 300, 1, 0)
        promptframe.AlertContents.Footer.Buttons["2"].ButtonContent.ButtonMiddleContent.Text.Text = btextx
        promptframe.AlertContents.Footer.Buttons["2"].ButtonContent.ButtonMiddleContent.Text.Size = UDim2.new(0, 300, 1, 0)
end

local function deletePrompt()
        game.Players.LocalPlayer.PlayerGui.CustomPrompt:Destroy()
end

Features & Information

Example Create: createPrompt("OHIO SISKA", "YOU POPPED IN SIGMA IN OHIO???", "YEAAASSSSS", "http://www.roblox.com/asset/?id=98032200973686", true, true, "TIGR SOSI", "CANCEL MY PINGAS AND BISCAS") -- title, desc, underdesc, image, truebutton, truebutton2, textbutton, textbutton2. Example Change Created: changeCreatedPrompt("OHIO SISKA", "YOU POPPED IN SIGMA IN OHIO???", "YEAAASSSSS", "http://www.roblox.com/asset/?id=98032200973686", true, true, "TIGR SOSI", "CANCEL MY PINGAS AND BISCAS") -- title, desc, underdesc, image, truebutton, truebutton2, textbutton, textbutton2. Example Change: changePrompt("OHIO SISKA 2", "YOU POPPED IN SIGMA IN OHIO??? 2", "YEAAASSSSS", "http://www.roblox.com/asset/?id=98032200973686", true, true, "TIGR SOSI", "CANCEL MY PINGAS AND BISCAS") -- title, desc, underdesc, image, truebutton, truebutton2, textbutton, textbutton2. Example Delete: deletePrompt()

Community Comments (2)

EVilDragonEVilDragonJan 12, 2025(edited)

I dont really understand this, can u make a example executble script?

DarlI_17DarlI_17Jan 13, 2025(edited)

EVilDragon first copy script and paste example: like this: (SCRIPT) createPrompt("OHIO SISKA", "YOU POPPED IN SIGMA IN OHIO???", "YEAAASSSSS", "http://www.roblox.com/asset/?id=98032200973686", true, true, "TIGR SOSI", "CANCEL MY PINGAS AND BISCAS") -- title, desc, underdesc, image, truebutton, truebutton2, textbutton, textbutton2.

More Scripts for Universal Scripts