Platformers Moving without Player

Hello,

I’m creating an obby game, but I’m having trouble with the moving platforms—they don’t carry the player along with them. Is there a solution to make players move with the platforms?

Here’s the code I have so far:

-- Moving platformers
for _, part in CollectionService:GetTagged("MovingPlatform") do -- Services are alreadu provided in the beginning
	if part:IsA("BasePart") and part:GetAttribute("EndPosition") and part:GetAttribute("Speed") then
		TweenService:Create(part, TweenInfo.new(part:GetAttribute("Speed"), Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, -1, true), {Position = part:GetAttribute("EndPosition")}):Play()
	end
end

Thank you!

2 Likes

normally they should be moving, maybe the speed is too high?

You need physics constraints, not tweens, for this use case.

This what you are looking for?

Yes, that is what I am looking for, how could I do that?

How could I do that? Thank you

Characters will move along with any part moved by a Prismatic Constraint.

But, the part moves in a straight line. Or, straight up and down.