generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: How can I get this to open upon clicking the dialog box?

Previous Thread :: Next Thread 
BloxaBrick is online. BloxaBrick
Joined: 24 Oct 2009
Total Posts: 25309
16 Oct 2015 04:27 PM
local Dialog = script.Parent

Dialog.DialogChoiceSelected:connect(function(Player, Choice)
if not Player then return end
if Choice.Name == "Choice1" and Player.PlayerGui:findFirstChild("ShopGui") == nil then
local Gui = script.Parent.ShopGui:clone()
Gui.Parent = Player.PlayerGui
end
end)










Instead of clicking choices, how can I get ShopGui to open upon clicking the Dialog.
Report Abuse
Xonious is online. Xonious
Joined: 01 Jan 2009
Total Posts: 1820
16 Oct 2015 04:32 PM
~Fixed
Works in Studio:
Report Abuse
Xonious is online. Xonious
Joined: 01 Jan 2009
Total Posts: 1820
16 Oct 2015 04:33 PM
--Your welcome - Xonious

function check(Player, Choice)
if Choice.Name == "Choice1" and Player.PlayerGui:findFirstChild("ShopGui") == nil then
local Gui = script.Parent.ShopGui:clone()
Gui.Parent = Player.PlayerGui
end
end

script.Parent.DialogChoiceSelected:connect(check)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image