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

How do I move a part in Workspace.model into just workspace using a script?

Asked by 5 years ago

So I am working on my rocket ship, and I have a weld script keeping all the parts together in the model. Basically after say like 5 seconds I want a script to move the thruster parts in the model out of the model into workspace.

I'm hoping once this happens that the weld script will no longer affect the thruster parts and they will detach after being anchored.

Glad to provide further explanation / and specific code needed, however I think this explanation should be fine.

Thank you!

0
part.Parent = workspace theking48989987 2147 — 5y

1 answer

Log in to vote
0
Answered by
OBenjOne 190
5 years ago
Edited 5 years ago
workspace.Model.part.Parent = workspace
--and then to undo welds
workspace.part:BreakJoints()

Actually, a part's parent does not really effect welds, you can weld two parts together regardless of their position in the explorer

0
since the welds are already created by the script, they will stay until broken. Most weld scripts only weld one time. OBenjOne 190 — 5y
0
Thank you so much! Alexanders1123 16 — 5y
0
Glad I could help! Please accept my answer if it worked. OBenjOne 190 — 5y
Ad

Answer this question