Hello!
I was wondering what method you recommend me to Replicated arms movement,
This are weapons, I use C0 of the Right Shoulder and Left Shoulder
But when I try to replicate, (firing a remote event and changing Torso > Left Shoulder and torso > right shoulder) C0, something weird happens, and it starts to glitch for the client.
What method do you recommend me for replication to server?
game.ReplicatedStorage.WeaponSystem.Events.ReplicateArms.OnServerEvent:Connect(function(Player,RightShoulder, NewRightC0, LeftShoulder, NewLeftC0)
for i,v in ipairs(game.Players:GetPlayers()) do
if Player:DistanceFromCharacter(v.Character.Head.Position) <= 100 and v ~= Player then
game.ReplicatedStorage.WeaponSystem.Events.ReplicateArms:FireClient(v, RightShoulder,NewRightC0, LeftShoulder, NewLeftC0)
end
end
end)
By disconnecting from connections that are created frequently. You don’t need to disconnect from PlayerAdded, but you may need to disconnect from CharacterAdded or Died.