Inserting Player Name into Text?
This seems very basic, but I've been trying to learn lua better by doing this on my own.
02 | if (dc.Name = = "Yes" ) then |
03 | print ( "You own this tycoon!" ) |
04 | workspace.Tycoon.DoorHeader.UnownedPharmacy.Name = "'s Tycoon" |
06 | if (dc.Name = = "No" ) then |
07 | print ( "You do not own this tycoon!" ) |
10 | script.Parent.DialogChoiceSelected:connect(oc) |
more specifically, this line;
1 | workspace.Tycoon.DoorHeader.UnownedPharmacy.Name = "'s Tycoon" |
After Name= , I ideally want it to chance the name to Carcanken's Tycoon for example, if I executed the dialog.
Thanks!