Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Player name string expected, got nil??

Hi thank you for your time and effort i have a simple error i want to get the layer name inside a script and then give the name to a string value like this

clonemap.plrName.Value=plrs.Name

plr is a the player object but this gives an error saying bad argument #3 (string expected, got nil)

1 comment

0

you misspelled "plr" with "plrs"?

1 answer

✓ Accepted answer

I think you accidentally included an "s" :)

try this instead:

clonemap.plrName.Value = plr.Name

2 comments

0

thanks @XDgirl909090 most of the times i focus on the big picture instead paying attention for these small typos thank you

0

It's all good, it happens :)

This discussion is preserved as it was. New answers, comments, and votes are closed.