I have a local script which rotates a Motor6D with CFrame. But the arm rotates only for the player and not for the server (other players). I can see the rotation but other not. What can I do so other players can see what the player does (like arm movement)?
Why does my characters arm only move for me and not for other players?
3 answers
You have to understand the importance of acknowledging the difference between a Local script and a server script. Only use a Local script whenever you want something done locally and a server script whenever you want to execute something for the server.
Learn also the importance of remotes. Because remotes will allow you to communicate between the server and the client (local), mastering or even gaining a heads up to this stuff will allow you to execute your codes more efficiently.
You should add a remote event instance and place it inside ReplicatedStorage. Then follow the following steps:
--Local Script
local remote = (remote-event-location)
tool.Equipped:Connect(function()
remote:FireServer()
end)
then:
--Server Script
local remote = (remote-event-location)
remote.OnServerEvent:Connect(function()
--move the arm
end)
For more info, read this article on remote events (and functions which may not be necessary for you at the minute). Please accept the answer if I helped you solve your problem.
EDIT: code changed to suit needs
4 comments
how does the --move the arm script look like?
that depends on how you wrote it. you did have the script moving your arm prior to this correct?
I made a script which detects if the player has a tool in hand and then that moves the arm with this script: ~~~ Shoulder.C0 = Shoulder.C0 * CFrame.Angles(math.rad(-90),0,0) ~~~
changed the code
ANSWER: You are using a Local Script instead of a Server Script.
Local Scripts are client sided and Server Scripts are server sided.
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
That's a given why your code doesn't appear to other players, because they are distributed as clients of the server, however you're only executing it from a local script which is your local client only. Using remotes and learning how to use Server script will allow you to distribute your code to the server and to all of the clients.
^ can confirm this is important
same