Help with coding garage door

can anyone help me with this?
coding a garage door for a game and need to change the orientation of a model but im having trouble starting out.

When I remove “CFrame.fromEulerAnglesXYZ(0, 0, -0.043)” the door goes up and works perfectly fine but when I add it, something goes wrong.

1 Like

put the thing after error * inside the second parthesis

I would just animate it… but if you want to code it then you can do a transparent finished/open version and have the default/close version in the same model, then code each part of the garage to move to its finished/opened version. That is if you are using tween services. Else just do a closed version and open version and when the prompt is triggered just make the other one transparent and turn off cancollide.

There is a syntax error. Also it’s much easier to just use an animation.

Don’t use :SetPrimaryPartCFrame, it’s deprecated, instead use :PivotTo, and replace GetPrimaryPartCFrame with :GetPivot().

You can use tweenservice, which is used usually for doors opening and what not. TweenService | Documentation - Roblox Creator Hub

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.