I’m still learning so sorry if I didn’t answer your question correctly. I deleted the code you said I shouldn’t pass it to the server. And down below is the code for what makes it replicate and the clients can see it moving fine and it works except the y axis of the light is being doubled and I really don’t like the look and feel to it (Example in gif 1).
Here is how the replicated version of the light is moving.
And here is how it moves without the code I posted so non replicated and I’m not sure how to go about it to make it look this way when its replicated.