Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Efficient way for getting mouse inputs in a FE game?

It is too laggy to pass inputs from the mouse in a local script to a server script with a while true do statement in FE games. Since it is also impossible to get mouse from a server script, I was wondering if there was any other ways for this? (P.S. I want mouse inputs for a part to follow the mouse in my FE game.)

2 comments

0

What are you using the mouse input to do?

0

' I want mouse inputs for a part to follow the mouse in my FE game.' @BlueTaslem

1 answer

Make a compromise, have a delayed display for the other players but a fast display for the LocalPlayer. Update the position locally for the LocalPlayer and then fire an event which will move it on the server so it will replicate for everyone. This way the player moving the part will see it just fine and it won't really affect the other players too much. If the part moving is a major part of the gameplay then you could use a BindableEvent so you do client to client updates instead of client to server to clients, that's more direct so should be faster.

I can't really provide any code but I hope you understand the concept.

1 comment

0

Client to Client events don’t exist.

This discussion is preserved as it was. New answers, comments, and votes are closed.