HubMong
(HubMong)
September 18, 2021, 11:16am
#1
Hello fellow developers!
Currently I am developing a simple elevator system with AlignPosition constraint.
The code is as follows:
There is no error, but when I click Up Button, the elevator never move.
For your reference, when I change the value of MaxVelocity in Property Window on the right,
I found the elevator move properly.
I will appreciate if someone help me.
Make sure that downButton.Material is “Neon”
kry1068
(Flash)
September 18, 2021, 12:03pm
#3
AlignPosition doesn’t work now. You can only use CFrame now! I found this in the Update 495 log for Roblox Studio
1 Like
HubMong
(HubMong)
September 18, 2021, 12:10pm
#4
Thank you for the info.
I didn’t know that.
Does CFrame mean Tween Service?
HubMong
(HubMong)
September 18, 2021, 12:11pm
#5
I checked but couldn’t find an error.
kry1068
(Flash)
September 18, 2021, 12:24pm
#6
CFrame is a position like AlignPosition
1 Like
Katrist
(Katrist)
September 18, 2021, 2:34pm
#7
TweenService is a completely different thing. CFrame contains X,Y, and Z values and rotation values. TweenService creates animations.
1 Like
HubMong
(HubMong)
September 19, 2021, 3:16am
#8
Actually I made an elevator system with TweenService firstElevator Systems
and now only that system works somehow as an elevator.
Here is the code:
The reason why I mentioned TweenService for CFrame is that
CFrame is used in the argument for Create function of TweenService as target values in the code.
HubMong
(HubMong)
September 19, 2021, 3:21am
#9
Sorry for asking u again, but How can you write a code with CFrame for an elevator other than using Tween Service?
I wrote codes for BodyVelocity, AlignPositioin constraint and TweenService
(Elevator Systems
But I found only TweenService works somehow.
Katrist
(Katrist)
September 19, 2021, 3:43am
#10
That’s still an animation. TweenService uses tweens to animate.
I know, I’m just saying that CFrame also has many other uses than just for TweenService.
1 Like
HubMong
(HubMong)
September 19, 2021, 4:17am
#11
Whether animation or not, I am fine if I can make a cool elevator moving smoothly.
Do u know any other alternatives?
1 Like
HubMong
(HubMong)
September 19, 2021, 8:28am
#12
I continued the research and found Teleport.
So you said CFrame and it means teleport by setting CFrame, right?
Katrist
(Katrist)
September 19, 2021, 3:16pm
#13
Here’s a video explaining how to make a elevator using align position and orientation. How to Tween a Model using Align Position & Orientation in Roblox Studio - YouTube
1 Like
HubMong
(HubMong)
September 20, 2021, 6:46am
#14
Thank u for the info. I will definitely check!