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

How do i make it look for the player's name and not "plrname"?

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.

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.

1 comment

0

ty c:

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