Body Velocity ceases to move model after model is modified?
I have a Model with a variety of parts welded together. Then in one of the parts, a BodyVelocity is pushing the model at a rate of 50 SPS.
Everything seems fine right?
Well, when I attempt to Delete one of those welded parts from the model the ENTIRE MODEL stops moving. I checked all the parts after deletion, none where accidentally anchored or anything. The appropriate parts where gone too. I checked the Body Mover and it still was set to try and push the parts to a velocity of 50.
Here is the part of the script that is removing parts.
01 | UIS.InputBegan:Connect( function (inp, gp) |
04 | if inp.KeyCode = = Enum.KeyCode.Space then |
05 | local segments = game.Workspace.Model.Segments:GetChildren() |
08 | segments [ #segments ] :Destroy() |
I searched Google but nothing I saw seem to be similar to my issue.