HumanoidRootPart sent from the client is intermittently not received on the server

Describe the issue briefly

When sending the HumanoidRootPart from the client to the server via a RemoteEvent, the server intermittently receives nil.
(This seems to happen when the character created on the client hasn’t fully synchronized with the server yet.)

Environment

Studio 1.6.2

Expected Result

The server should consistently receive the HumanoidRootPart.

Issue Frequency

20%~80% (Often)

Error Log

– LocalScript
local humanoidRootPart = character:WaitForChild(“HumanoidRootPart”)
CharacterSpawnEvent_C2S:FireServer(humanoidRootPart, localCFrame)

– Script
CharacterSpawnEvent_C2S.OnServerEvent:Connect(function(player, humanoidRootPart, hrpCFrame)
humanoidRootPart.CFrame = hrpCFrame
end)

Workaround Solution

Add a wait(1~3) after obtaining the HumanoidRootPart on the client.