Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how do i fix this dialog gui shop script? it does not pop up!

Asked by 5 years ago

Well... i watched alot of videos in youtube... "I MEAN ALOT" everything seem broken! ..(or im just stoopid)

Here's the script!

script.Parent.DialogChoiceSelected:connect(function(player,dialog)
 local gui = script.Parent.Box1 -- Change Shop To The Name Of The Gui.
 if dialog.Name=="Choice1" then -- Change The Choice1 To The Name Of The Dialog Choice.
  gui:Clone().Parent = player.PlayerGui
 end
end)

I'm trying to make a Crate roll dialog shop.. but here's the problem: 1. GUI does not pop up - i tried checking if disabled,the transparency and if enabled...but it all check and set to 0

  1. how can i clone this? Cause if i use visible to the script.. when they buy again... they can't because the crate roll is done spinning.. so it must be a clone.

how do i fix this... if not change the script? please halp meh ASAP

1 answer

Log in to vote
0
Answered by 5 years ago

Personally I would do this like such;

local button = --Your Text Button or Image Button that is pressed in order to clone the Gui

button.MouseButton1Click:connect(function(player,dialog)
    if dialog.Name=="Choice1" then -- Change The Choice1 To The Name Of The Dialog Choice.
        local gui = script.Parent.Box1:Clone()
        gui.Parent = player.PlayerGui
    end
end)

Let me know if this doesn't work, it's hard to help with such a specific situation.

0
can u do it on a brick. cause im making a box selection doomoxima21 17 — 5y
Ad

Answer this question