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: Regarding conversations

Previous Thread :: Next Thread 
Fakecake777 is not online. Fakecake777
Joined: 19 Nov 2012
Total Posts: 441
27 Dec 2013 09:04 AM
I'm playing a bit around with conversations, and I am trying to give the player the choice of saying his/her own name. I've got this code so far:

function changeDialog(player, choice)
script.Parent.Dialog.DialogChoice1.DialogChoice1.UserDialog = tostring("My name is" .. player.Name)
end

script.Parent.Dialog.DialogChoiceSelected:connect(changeDialog)

I get no errors, but when I test it, I just get the choice of saying "..." instead of "My name is Player1"
Report Abuse
Fakecake777 is not online. Fakecake777
Joined: 19 Nov 2012
Total Posts: 441
27 Dec 2013 09:07 AM
read dialogues instead of conversations
Report Abuse
evolvedpikachu is not online. evolvedpikachu
Joined: 18 Aug 2010
Total Posts: 10696
27 Dec 2013 09:10 AM
I don't think you can do that with Dialog.
Report Abuse
Fakecake777 is not online. Fakecake777
Joined: 19 Nov 2012
Total Posts: 441
27 Dec 2013 10:05 AM
Oh, ok. Thanks anyway
Report Abuse
GamerOfGames123 is not online. GamerOfGames123
Joined: 14 Jul 2012
Total Posts: 210
27 Dec 2013 10:08 AM
Wait! Do you test online in your place or with f6?
Report Abuse
GamerOfGames123 is not online. GamerOfGames123
Joined: 14 Jul 2012
Total Posts: 210
27 Dec 2013 10:09 AM
If you test with f6, its ok, because in f6 your name is Player1
Report Abuse
jtfriend137 is not online. jtfriend137
Joined: 19 Jul 2010
Total Posts: 1960
27 Dec 2013 10:10 AM
What you're trying to do is totally possible.
Report Abuse
GamerOfGames123 is not online. GamerOfGames123
Joined: 14 Jul 2012
Total Posts: 210
27 Dec 2013 10:12 AM
I think you need to remove tostring
Report Abuse
jtfriend137 is not online. jtfriend137
Joined: 19 Jul 2010
Total Posts: 1960
27 Dec 2013 10:36 AM
Yeah, I don't think tostring is necessary.
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