This video is a bit outdated, as you can now set replication to enabled on the constructor by using
{
PrimaryActorTick.bCanEverTick = true;
// The new way
bReplicates = true;
SetReplicatingMovement(true);
SetMobility(EComponentMobility::Movable);
}
void AMovingPlatform::BeginPlay()
{
Super::BeginPlay();
// The old way now commented out
// if (HasAuthority())
// {
// SetReplicates(true);
// SetReplicateMovement(true);
// }
}