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

How do I make sure a model is always right side up?

Asked by 6 years ago

for example, I have a car model > vehicle seat + all the parts that go with it

how would I make sure it never flips over and if it does to put it back into the proper position?

1 answer

Log in to vote
0
Answered by
Elixcore 1337 Moderation Voter
6 years ago
car = game.Workspace.Model

while wait() do
for i,v in pairs(car:GetChildren()) do
    if v.Orientation == not Vector3.new(0,0,0) then
       v.Orientation = Vector3.new(0,0,0)
end
end
Ad

Answer this question