Trying to tween bodygyro and body position?

I’m trying to tween body gyro and body position for my moving platform but it only lasts for 2 seconds and the platform stops moving. I want the platform to keep moving longer or preferably go to a vector 3 position of a part as a way point. Do i change the cframe.new and vector3.new or keep it as is, or something else. Script below

local TweenService = game:GetService("TweenService")
local BodyGyro = script.Parent
local BodyPosition = script.Parent



TweenService:Create(BodyGyro, TweenInfo.new(80, Enum.EasingStyle.Linear,
	Enum.EasingDirection.In, 0, false, 0), {CFrame = CFrame.new(0, 0, 0)})

TweenService:Create(BodyPosition, TweenInfo.new(80, Enum.EasingStyle.Linear,
	Enum.EasingDirection.In, 0, false, 0), {Position = Vector3.new(0, 0, 0)})

any ideas on possible solutions?

1 Like

Couldn’t you just tween the platform’s position instead of using a Body Gyro or Body Position? (Unless you absolutely needed to use one of those).

1 Like

well I can’t just tween it because there’s going to be players riding on it and moving around on it. Just tweening it means the players keep falling off.

That can be easily fixed with EgoMoose’s awesome resource.

Here’s one suggestion: You can have a proxy part, and then your platform can have an AlignPosition and AlignOrientation object attached to it instead of the BodyPosition and BodyGyro. You can CFrame the proxy part to follow a series of waypoints normally, but the platform should have physics simulation so players do not fall off.

i don’t know how to use this for a moving platform

I am a very inexperienced scripter but couldn’t you just tween the platforms position rather than using the body gyro?

Already replied with the same question. Read through the replies before posting so that you don’t ask a question that has already been asked and answered.