How to make a model move up and down when you press a button

How could i make a model move up and down at the press of a button?

Any help is appreciated

2 Likes

If you mean up and down with the keys on your keyboard you would use a script using UserInputService, If you mean a UI button then you would add script that checks if that button is pressed then move it up and down using either cframe or lerping. I am fairly new to scripting but Iā€™m certain this is the way it would work. Hope this helps!

Are you implying the creation of an elevator?

1 Like

im trying to make a moving truss system

Physics-based method as aforementioned applies for moving objects(not anchored). If your object is static and anchored in place, use TweenService and tween its CFrame in combination of weld constraints to the root assembly.