Answered by
5 years ago Edited 5 years ago
So if you're trying to copy and move a part or model to Workspace, this is what you want to do. Also a couple tips in here as well.
You have the right idea.
What I would recommend working on.
Work on having variables to = what you want. The main reason your script wasn't working is because you had game as Game. Game with a capital G is deprecated. I forgot, thank you @CeramicTile for informing me of that. It has to be lowercase entirely. If you use variables, you'll only have to type that variable to reference a brick or model.
What I did...
I added variables.
I would also advise using ServerStorage as a storage space as hackers/exploiters can't access that server but be aware that they can access stuff in Workspace. It also helps make it organized. All you'd have to do is move the part to ServerStorage and change the Lighting to ServerStorage.
My script
3 | Brick = game.Lighting.PARTNAME |
6 | Brick:Clone().Parent = workspace |
8 | workspace.PARTNAME:Destroy() |
Your Script
2 | game.Lighting.PARTNAME.Parent = game.Workspace |
4 | workspace.PARTNAME:Destroy() |