I have made a head movement script that allows the player to look into the direction their camera is facing. It seems to work just fine on the client but the movement does not show on other clients. I already have a script that tells the server to replicate it to all clients however it does not work.
Local Script:
LookEvent.OnClientEvent:Connect(function(otherPlayer, neckCFrame)
local Neck = otherPlayer:FindFirstChild("Neck", true)
if Neck then
Neck.C0 = neckCFrame
end
end)
while wait(2) do
LookEvent:FireServer(Neck.C0)
end
Server Script:
LookEvent.OnServerEvent:Connect(function(player, neckCFrame)
for key, value in pairs(game.Players:GetChildren()) do
if value ~= player then
LookEvent:FireClient(value, player, neckCFrame)
end
end
end)
I can provide the movement script if needed.