Hey!
First up a local script shouldn't be in the workspace it's best that it goes in a player.
If you're trying to get the name of a player into an string try something like this:
2 | script.parent.Value = script.Parent.Parent.Parent.Name |
while having the hierarchy like this https://gyazo.com/720630a5c2b5f57ae028651c48261d5f
If you need the player name in the workspace 100% then try something like this
3 | local name = Instance.new( 'StringValue' ) |
5 | name.Value = script.Parent.Parent.Name |
whilst having the script somewhere in the player. I prefer the player Starter pack but it can also go in here https://gyazo.com/cd5458b31d61d78eb259edcf43c0911e
Hope this helps!