load.ClickDetector.MouseClick:connect(function(player) plrname=player.Name clone=game.Lighting.plrname:Clone() clone.Parent=game.Workspace end) Error: plrname is not a valid member of Lighting How do i make it look for the player's name and not literaly "plrname" Pm me how please.
✓ ANSWER ACCEPTED
How do i make it look for the player's name and not "plrname"?
1 answer
✓ Accepted answer
game.Lighting[plrname]:Clone().Parent=workspace
I'd also add a FindFirstChild line in case there is no Instance with the player's name inside Lighting.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
ty c: