Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

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.

1 comment

0

can u do it on a brick. cause im making a box selection

This discussion is preserved as it was. New answers, comments, and votes are closed.