Cannot ride a moving platform

Hello
I made a moving platform but the player can’t actually stay on it. I was wondering how I would go about fixing this.

Script (client):

local part = workspace.Part
local tweenService = game:GetService("TweenService")

local movePlatform = tweenService:Create(
	part,
	TweenInfo.new(3, Enum.EasingStyle.Quart, Enum.EasingDirection.Out, math.huge, true),
	{Position = Vector3.new(-39.5, 7.5, 40.25)}
)

movePlatform:Play()

Thanks

1 Like

Unfortunately solely Tweening the .Position doesn’t include the physics engine, which is what would cause characters to move along with the platform. I would recommend using a BodyMover, specifically BodyPosition, to set the platform in motion, since this works using physics.

Here is another couple posts already on this topic:

1 Like

Thanks! But when I do move it, it’s pretty wobbly. How would I go about locking the orientation?
Sorry I’m not very familiar with physics

1 Like

To solve this, you can incorporate a BodyGyro as well as a BodyPosition. This allows you to stabilize and lock the orientation via a CFrame input, which you could probably set to a empty CFrame depending on your platform’s desired orientation.

7 Likes

What do you put for that? is it CFrame.new (0,0,0) or CFrame.new (Parts Position) or something else?

Sorry I don’t know what to do for this and where you put the script.