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

Head follow mouse with filtering enabled?

I know how to make a Head follow mouse, although I don't know how to use it with filtering enabled, using remote events or bindablefunctions wouldn't be efficient due to over-requesting the server... Any help?

1 answer

You don't have an option. Because you must replicate it to the server, you also MUST use a remote event (edit* object). I suggest updating it 30-60 times a second on the client (trust me, any modern PC can handle it with much ease), and around 1-10 times a second on the server. You don't need to fire the server each time it updates, either; simply convey the new position to the server (edit* other clients, as to not effect this client with the servers update would be best) every 5 or so times you want it to change, and while waiting for a new one to be conveyed, you simply slowly lerp it toward that position. It wont be laggy enough for it to cause issues, trust me. That's how a lot of FPS games work nowadays on ROBLOX (and probably other platforms, too).

11 comments

0

No, your client handles your local character. This is not the problem.

0

What are you even talking about? Downvoting a perfectly good answer. I never said anything about MY local character being updated. I said OTHER CLIENTS are updating MY POSITION on THEIR COMPUTER. I.e. My computer > Server > Other clients computer. The server causes problems I mentioned above if used, and ROBLOX doesn't support p2p, so that's the only good option.

0

I +1ed your answer to compensate (and your answer is good), though hiimgoodpack is also correct -- the client is responsible for the local character (at least certain parts of it -- you can test it out for yourself in a blank place with FE on, Local Test Server with 2 players.) RemoteEvents are a perfectly acceptable solution, however -- it's a similar cost to Roblox updating parts anyway

0

So why is other clients handling your local character? Will it just be glitching out with 2 different clients with 2 different mouse positions?

0

It automatically replicates without need of remotes

0

@jack no it doesn't with FE, and @chess thanks and I wasn't saying it doesn't, and @ hiim It doesn't glitch, it's FE man. They handle their own as well as other players based on the information the server passes, because p2p isn't possible on ROBLOX. it's p2s2p, if that's even a thing.

0

"OTHER CLIENTS are updating MY POSITION" so they are basically

0

Also, the server is giving your computer trust that YOU can handle your local character's physics, but you can still lie to the server and say going 9999999 studs per second makes sense.

0

I'm not gonna lie you are legitimately retarded. Wtf is wrong with you. They aren't handling my local character, they are being told to change the position after the server updates the position to them. Also, were talking about the head moving, not the physics. Kys you cancerous piece of crap troll. You are an idiot.

0

oh my god they hacked my HEADS ROTATION!! end of the world man

0

well ok

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