Okay so, I'm replicating the CFrame of another humanoid object controlled by the character with calling a remote event and passing the parts for arguments. The server then fires the client event to all the clients and the client sets the cframe of the limbs, but this doesn't work. Help?
Localscript fires this every 5 frames during a RunService.Renderstepped event
if (replicationTimer % 5) == 0 then
StandEvent:FireServer("Replicate", {
Stand.HumanoidRootPart.CFrame,
Stand.LeftFoot.CFrame,
Stand.LeftHand.CFrame,
Stand.LeftLowerArm.CFrame,
Stand.LeftUpperArm.CFrame,
Stand.LeftUpperLeg.CFrame,
Stand.LowerTorso.CFrame,
Stand.RightFoot.CFrame,
Stand.RightHand.CFrame,
Stand.RightLowerArm.CFrame,
Stand.RightUpperArm.CFrame,
Stand.RightUpperLeg.CFrame,
Stand.UpperTorso.CFrame,
Stand.Head.CFrame
})
end
Server then fires to all clients
if request == "Replicate" then
TestStandEvent:FireAllClients(player, arrayOfLimbs)
end
Client Event
StandEvent.OnClientEvent:Connect(function(Player, arrayOfLimbs)
if Player and Player.Character:FindFirstChild("HumanoidRootPart") then
StandTorso.CFrame = arrayOfLimbs[1]
Stand.LeftFoot.CFrame = arrayOfLimbs[2]
Stand.LeftHand.CFrame = arrayOfLimbs[3]
Stand.LeftLowerArm.CFrame = arrayOfLimbs[4]
Stand.LeftUpperArm.CFrame = arrayOfLimbs[5]
Stand.LeftUpperLeg.CFrame = arrayOfLimbs[6]
Stand.LowerTorso.CFrame = arrayOfLimbs[7]
Stand.RightFoot.CFrame = arrayOfLimbs[8]
Stand.RightHand.CFrame = arrayOfLimbs[9]
Stand.RightLowerArm.CFrame = arrayOfLimbs[10]
Stand.RightUpperArm.CFrame = arrayOfLimbs[11]
Stand.RightUpperLeg.CFrame = arrayOfLimbs[12]
Stand.UpperTorso.CFrame = arrayOfLimbs[13]
Stand.Head.CFrame = arrayOfLimbs[14]
end
end)

4 comments
Okay, please tell me on how to do this.
Because I would like toknow.
You can read all the Motor6D.Transform values on Heartbeat on the server IIRC, and apply them on Stepped on the client (sending via remote event). But this scales very poorly. If you have one player controlling the limb of an NPC, you're fine. If every player is puppeting a second character... forget you ever read this, you need to use Animations or players on slow computers won't see things move.
And every comment in chat in your game will just be "OMG Lagggggg...."