local RunService = game:GetService("RunService") local part = workspace:WaitForChild("ShuttlePlatform") part.Anchored = false part:SetNetworkOwner(nil) local origin = part.Position local frame = part.CFrame.Rotation local attachment = Instance.new("Attachment", part) local align = Instance.new("AlignPosition") align.Mode = Enum.PositionAlignmentMode.OneAttachment align.Attachment0 = attachment align.Position = origin align.MaxForce = math.huge align.Responsiveness = 45 align.Parent = part local orientation = Instance.new("AlignOrientation") orientation.Mode = Enum.OrientationAlignmentMode.OneAttachment orientation.Attachment0 = attachment orientation.CFrame = frame orientation.MaxTorque = math.huge orientation.Responsiveness = 45 orientation.Parent = part local began = workspace:GetServerTimeNow() RunService.Heartbeat:Connect(function() local cycle = (1 - math.cos((workspace:GetServerTimeNow() - began) * math.pi / 4)) / 2 align.Position = origin + Vector3.new(24 * cycle, 0, 0) end)