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

Why does it say not a valid member of lighting if i Duplicated into lighting and put handle?

Asked by 6 years ago

Why does it say not a valid memeber of lighting if i already duplicated it into lighting and put handle ?

i tried looking up videos and going on webiste nothing work im try to make a cafe put when i do the donut it wont work it keeps saying donuts is not a valid memeber of lighting i name it handle and this is the script i use function onClick(click) for i,v in pairs (game.Lighting:GetChildren()) do if v.ClassName == "Tool" then c = v:Clone() c.Parent = click.Backpack end end end script.Parent.ClickDetector.MouseClick:connect(onClick) Please some one help me

Answer this question