Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 9 years ago

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

Log in to vote
1
Answered by 9 years ago

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.

0
ty c: Nick1482 50 — 9y
Ad

Answer this question