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
 

Dialog Choice

Previous Thread :: Next Thread 
robloxerer4 is not online. robloxerer4
Joined: 09 Nov 2009
Total Posts: 156
20 Mar 2013 12:11 PM
Can someone help?

I'm trying to make a script that get's a player's name and put's it in a "StringValue". The players name is the person who has clicked on certain dialog choices. But the problem is that it doesn't seem to work, so now I'm wondering is it even possible.?Here's what I've got (I'm almost certain that there should be a lot more lines):-


function pep (person)
print(person)
script.Parent.Person.Value=person
print(person.Name)
end
script.Parent.Dialog.DialogChoiceSelected:connect(pep)


I thought (originally) that this would do as I know script like:-

function touch (hit)
print(hit.Parent.Name)

end

script.Parent.Touched:connect(touch)


work, but the one I'm working hasn't got physical contact, is that why it won't work? Or if you could tell me where on ROBLOX wiki could help, that would be helpful too.
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
20 Mar 2013 12:13 PM
Change it so it's a LocalScript in PlayerGui, then you can use LocalPlayer.Name
Report Abuse
robloxerer4 is not online. robloxerer4
Joined: 09 Nov 2009
Total Posts: 156
20 Mar 2013 12:15 PM
Thanks I'll give that a shot.
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