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 » Scripting Helpers
Home Search
 

Re: GUI Appear on dialog choice selection?

Previous Thread :: Next Thread 
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
01 Sep 2014 07:39 AM
How do I make a GUI appear when a dialog choice is selected? And then when a tool called "Book" is found in the inventory, that GUI switches transparency and a new GUI takes its place until the tool called "Book" is not found? This is a bit complicated so please read through.

****IMPORTANT THE TEXT NEEDS TO ALSO APPEAR (EVERYTHING HAS A TRANSPARENCY OF 1 TO START)*****

Wouldnt I start with definitions?

local questgetframe = game.StarterGui.QuestGui.LostBook
local questgettext = game.StarterGui.QuestGui.LostBook.LostBookText
local Dialog = script.Parent.Parent.Parent.Parent.Parent
local questreturnframe =game.StarterGui.QuestGui2.FoundBook
local questreturntext = game.StarterGui.QuestGui2.FoundBook.FoundBookText
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
01 Sep 2014 08:22 AM
bump
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
01 Sep 2014 06:15 PM
bumpety
Report Abuse
robocu3 is not online. robocu3
Joined: 13 Mar 2009
Total Posts: 6485
01 Sep 2014 06:16 PM
There may be an event that fires upon dialog selection. Wiki it.

-=Robo=-
Report Abuse
connor954 is not online. connor954
Joined: 24 Jul 2008
Total Posts: 947
01 Sep 2014 06:19 PM
There is.

~My home in the forums is Scripting Helpers...[Twitter: C-RBLX]
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
01 Sep 2014 06:33 PM
So something like this?

local questgetframe = game.StarterGui.QuestGui.LostBook
local questgettext = game.StarterGui.QuestGui.LostBook.LostBookText
local Dialog = script.Parent.Parent.Parent.Parent.Parent
local questreturnframe =game.StarterGui.QuestGui2.FoundBook
local questreturntext = game.StarterGui.QuestGui2.FoundBook.FoundBookText

workspace.Dialog.DialogChoiceSelected:connect(function(player,choice)
if choice.Name == "Accept" then
questgetframe.BackgroundTransparency = 0 and ---This to
questgettext.TextTransparency = 0 until--this will work right?
game.Players.Player.Backpack:FindFirstChild("Book") then ---line I am pretty sure will not work and don't know how to fix it..
questreturnframe.BackgroundTransparency = 0 and
questreturntext.TextTransparency = 0 until

game.Players.Player.Backpack:FindFirstChild("Book") = nil ---I am not familiar with nil

and I have no idea how many ends there are. I am almost certain that this will not work and need help in fixing it. I am a beginner scripter. Thanks, Cheeso
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
01 Sep 2014 07:48 PM
bump
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
01 Sep 2014 07:54 PM
bumpety bump bump
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
01 Sep 2014 08:01 PM
anyone join got answer ro do I have to keep spamming?
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
01 Sep 2014 08:46 PM
helloooo
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
01 Sep 2014 09:22 PM
bump
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
02 Sep 2014 09:13 AM
bump
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
03 Sep 2014 01:46 PM
BUMP
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
03 Sep 2014 02:19 PM
bumpety. btw look at the last real post.
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
04 Sep 2014 02:01 PM
bump
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
04 Sep 2014 04:36 PM
bump
Report Abuse
Sinblade is not online. Sinblade
Joined: 14 Aug 2010
Total Posts: 2782
04 Sep 2014 04:42 PM
test it k?
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
04 Sep 2014 04:46 PM
ok. brb
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
04 Sep 2014 04:51 PM
local questgetframe = game.StarterGui.QuestGui.LostBook
local questgettext = game.StarterGui.QuestGui.LostBook.LostBookText
local Dialog = script.Parent.Parent.Parent.Parent.Parent
local questreturnframe =game.StarterGui.QuestGui2.FoundBook
local questreturntext = game.StarterGui.QuestGui2.FoundBook.FoundBookText

workspace.Dialog.DialogChoiceSelected:connect(function(player,choice)
if choice.Name == "Accept" then
questgetframe.BackgroundTransparency = 0 and ---This to
questgettext.TextTransparency = 0 until --------------****IMPORTANT**** here it says unexpected symbol near =.
game.Players.Player.Backpack:FindFirstChild("Book") then
questreturnframe.BackgroundTransparency = 0 and
questreturntext.TextTransparency = 0 until

game.Players.Player.Backpack:FindFirstChild("Book") = nil
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
04 Sep 2014 04:52 PM

local questgetframe = game.StarterGui.QuestGui.LostBook
local questgettext = game.StarterGui.QuestGui.LostBook.LostBookText
local Dialog = script.Parent.Parent.Parent.Parent.Parent
local questreturnframe =game.StarterGui.QuestGui2.FoundBook
local questreturntext = game.StarterGui.QuestGui2.FoundBook.FoundBookText

workspace.Dialog.DialogChoiceSelected:connect(function(player,choice)
if choice.Name == "Accept" then
questgetframe.BackgroundTransparency = 0 and
questgettext.TextTransparency = 0 until --------****IMPORTANT**** Here it says that unexpected symbol near =?
game.Players.Player.Backpack:FindFirstChild("Book") then
questreturnframe.BackgroundTransparency = 0 and
questreturntext.TextTransparency = 0 until

game.Players.Player.Backpack:FindFirstChild("Book") = nil
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
04 Sep 2014 05:01 PM
bump. what is wrong with it?
Report Abuse
Bradderz369 is not online. Bradderz369
Joined: 27 Jul 2009
Total Posts: 343
04 Sep 2014 05:03 PM
I can't script but I am pretty sure there are suppose to be some ends in there :P
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
04 Sep 2014 05:08 PM
In output it does not say there should be but....why is it saying unexpected symbol near =?????
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
04 Sep 2014 05:11 PM
Oh and this is a local script descended from the dialog...
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
04 Sep 2014 05:16 PM
bump
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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