01 | function oc(pl, dc) |
02 | if (dc.Name = = "Yes" ) then |
03 | print ( "You own this tycoon!" ) |
04 | workspace.Tycoon.DoorHeader.UnownedPharmacy.Name = player.Name.. "'s Tycoon" |
05 | end |
06 | if (dc.Name = = "No" ) then |
07 | print ( "You do not own this tycoon!" ) |
08 | end |
09 | end |
10 | script.Parent.DialogChoiceSelected:connect(oc) |
In the 4th line, how would I identify a global variable, as the player who is enacting the specific dialog, so it would print "Carcanken's Tycoon" if I was using the dialog.
Thanks!