What do you want to achieve?
→ I have been trying to make a laser pointer inspired by the AIM H4X laser system.
What is the issue?
→ I managed to make the laser moves to where the mouse is pointing at by firing a remote event when the mouse moves. But it is somewhat delayed (see video) and no where near the smoothness of the AIM H4X laser.
I’ve tried using alternative ways to detect the mouse movements but none of it helped. Is there any better way to approach a better laser casting system? Any suggestion would help a lot!
What are you asking about exactly? What is AIM H4X?
Remotes have a delay, there is no getting around that. If you want something to happen instantly, do the visuals on the client and then send the info to the server to double check your work.
Yes, the laser on the right is client sided. The part positioning is, at least. If it’s doing damage or something, that should probably be done on the server still.
However yes, I would agree with @nicemike40 , Depending on your use case, The Client would be a lot smoother, But only seen by you, The Server is Slower, but can be seen by everyone, You would use Heartbeat, Stepped, or even a simple while loop to accomplish your goal for the Server.
But RenderStepped on the Client.
RemoteEvents may be used to Fire for all Clients, but I wouldn’t recommend spamming them, same with RemoteFunctions.