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

cut and paste with levels script can anyone help?

Asked by 6 years ago

i have a script to copy something to workspace to lighting but it doesent work game.Workspace.build:Clone()game.lighting.RoomOne can anyone help?

0
You should not be using lighting to store models. Use replicated storage or server storage. User#5423 17 — 6y

1 answer

Log in to vote
0
Answered by
tantec 305 Moderation Voter
6 years ago
Edited 6 years ago

Use this instead:

cloned = game.Workspace.build:Clone()
cloned.Parent = game.Lighting.RoomOne
game.Workspace.build:remove()
0
thx ForgotenR4 68 — 6y
0
please use destroy and not remove Vulkarin 581 — 6y
0
please use :Destroy() not :remove() for remove is deprecated and looks ugly :) GingeyLol 338 — 6y
0
sorry lc tantec 305 — 6y
Ad

Answer this question