Im trying to make an Platform using align position that follows a part that is being tweened however the results are that the platform lags behind the part its supposed to follow.
As well as this for some reason it doesn’t work on the client at all
I tried setting the part networkowner to nil but that didn’t solve it
Anybody know how to make a moving platform that makes the character follow with the platform but also allows me to control how the platform movement looks?
It looks like you’re using different tween infos? Do both use the same Enum.EasingStyle and EasingDirection? Alternatively, if that doesn’t work, you could instead tween a CFrame value or vector3 value and on change change the locations of both objects at the same time.
local TweenService = game:GetService("TweenService")
local Goal1 = {
Position = workspace.Part1.Position,
Orientation = workspace.Part1.Orientation,
}
local Goal2 = {
Position = workspace.Part2.Position,
Orientation = workspace.Part2.Orientation,
}
local PlatformTweenInfo = TweenInfo.new(
2, -- Time
Enum.EasingStyle.Quart, -- EasingStyle
Enum.EasingDirection.Out, -- EasingDirection
0, -- RepeatCount (when less than zero the tween will loop indefinitely)
false, -- Reverses (tween will reverse once reaching it's goal)
0 -- DelayTime
)
local platformTween1 = TweenService:Create(script.Parent, PlatformTweenInfo, Goal1)
local platformTween2 = TweenService:Create(script.Parent, PlatformTweenInfo, Goal2)
while true do
platformTween1:Play()
platformTween1.Completed:Wait()
platformTween2:Play()
platformTween2.Completed:Wait()
end