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
 

ResponseDialog Broken?

Previous Thread :: Next Thread 
ozza is not online. ozza
Joined: 11 Oct 2007
Total Posts: 726
05 May 2012 10:18 PM


script.Parent.DialogChoiceSelected:connect(function(player, choice)
if choice.Name == "DialogChoice" and player.AppleCollected.Value == false then

player.AppleCollected.Value = true
script.Parent.DialogChoice.ResponseDialog = "Here Ya Go!"
else
script.Parent.DialogChoice.ResponseDialog = "You already have an apple."
end

end
end)

The values work fine, but it doesn't change the Response.
Report Abuse
L2000 is not online. L2000
Joined: 03 Apr 2008
Total Posts: 77448
05 May 2012 10:47 PM
Try:

script.Parent.DialogChoiceSelected:connect(function(player, choice)
if choice.Name == "DialogChoice" and player.AppleCollected.Value == false then

player.AppleCollected.Value = true
choice.ResponseDialog = "Here Ya Go!"
else
choice.ResponseDialog = "You already have an apple."
end

end
end)

If this does not work, add prints() throughout the script, and see what runs and what doesn't.
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