How do I make a platform that moves with the player like body gyros did?

Hello, so im working on a game that needs the player to move with a platform, the player also needs to be able to walk around on the platform while it still moves them.

here’s what the moving platform would somewhat be https://streamable.com/1nv28b

I found this in the toolbox but I have literally no idea how it works, it had the same system as me https://streamable.com/vhqmkd any tips would be appreciated!

Have you tried a combination of BodyPosition and BodyGyro?

A BodyPosition has a Position property that determines where the part should be positioned at. You can tween this property instead of the part’s position.

A BodyGyro has a CFrame property that determines the fixed orientation of the part, to keep it stable.

You should have strong forces for both to stabilize them as much as possible.

oh yea i meant body position the thing is I copied the entire thing from the working one and it still didn’t move me

local model = script.Parent.Parent
local platform = model.platform
local start = model.pointA
local finish = model.pointB
local bodyPos = platform.BodyPosition
local time = 2 --Time between motion

while true do
	bodyPos.position = start.Position
	wait(time)
	bodyPos.position = finish.Position
	wait(time)
end

that’s the working ones script

I just made the part bigger and that seemed to fix it, maybe it was too small?

1 Like