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 fix this line?

game.Lighting.[G] Frost:clone().Parent = player.Backpack

The "[G] Frost" will not go through, how do I make it so I can keep the name of the gear and have this line work?

Note: I do believe it might be that you can't have spaces or special characters in the

2 answers

✓ Accepted answer

["[G] Frost"]

Using this allows for spaces in your items names. Not too sure about the square brackets tho

As Kritik stated, you cannot space String Names onto Lua in that format. The correct code would be:

game.Lighting["[G] Frost"]:Clone().Parent = player.Backpack

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