function onClick(click)
for i,v in pairs (game.Lighting:GetChildren()) do
if v.Classname == "Strawberry Lolipop" then
c = v:Clone()
c.Parent = click.Backpack
end
end
end
script.Parent.ClickDetector.MouseClick:Connect(onClick)
It’s just a typo! It should be “ClassName” instead of “Classname”. Although “Strawberry Lolipop” is not an existing ClassName.
Edit: do you mean “Name”?