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