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

Is it possible to make players stand still on anchored objects moved using CFrame?

Asked by 5 years ago
Edited 5 years ago

I've made a train that moves along the train track using CFrame, and tried so many ways to try to keep the player from falling off the train, including CFraming the player along with the train (way too hard for me to manage). So I decided to ask if there's an easier way to do this

2 answers

Log in to vote
1
Answered by 5 years ago

Yes, there is a very simple way. You can use the BasePart properties named Velocity and RotVelocity. These will automatically move anything standing on them. So if your train is moving in its z-direction, make a script adjust the velocity of the part. Just keep in mind that this velocity is relative to the part, not the world. Hope this helps, if my answer isn't clear enough, I would gladly give an example.

Ad
Log in to vote
0
Answered by 5 years ago

There are "Seat" Instances in roblox, that will make the player seat and move wherever the seat goes. So add the seat inside the train, and make the player sit in.

0
Oh, I forgot to mention that this train is automated, it's not for sitting on, it's mostly for standing on and jumping around and on top of train tenders Konethorix 197 — 5y
0
Kinda like a Jailbreak train Konethorix 197 — 5y
0
I don't think u can do that without using CFrames, so you could or, use CFrames, or weld the character into the train. EternalScythe 222 — 5y

Answer this question