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

Model un-welding when taken out of lighting?

Asked by 8 years ago

I have an unanchored model that has multiple parts welded together, it works fine in the workspace, but when I put it in lighting and then take it out with a script it un-welds itself. Help?

For anyone curious, here the script that takes out the model from lighting.

local kill = game.Lighting:FindFirstChild("Kill")

wait(5)
    kill.Parent = workspace

1 answer

Log in to vote
0
Answered by 8 years ago

You said it's anchored. Not sure if this will definitely work but I'd rewrite your code to be something like this...

local kill = game.Lighting:FindFirstChild("Kill")
kill.Anchored = true
wait(5)
kill.Parent = game.Workspace
wait(0.2)
kill.Anchored = false

There might be something that just glitches out because of it being unanchored during the transfer, so try writing that in, it should work, but I'm not entirely sure it will.

Ad

Answer this question