Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Head follow mouse with filtering enabled?

Asked by
Corexty 15
6 years ago

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

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

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).

0
No, your client handles your local character. This is not the problem. hiimgoodpack 2009 — 6y
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. MedievalBeast4 4 — 6y
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 chess123mate 5873 — 6y
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? hiimgoodpack 2009 — 6y
View all comments (7 more)
0
It automatically replicates without need of remotes unmiss 337 — 6y
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. MedievalBeast4 4 — 6y
0
"OTHER CLIENTS are updating MY POSITION" so they are basically hiimgoodpack 2009 — 6y
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. hiimgoodpack 2009 — 6y
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. MedievalBeast4 4 — 6y
0
*oh my god* they hacked my HEADS ROTATION!! end of the world man MedievalBeast4 4 — 6y
0
well ok Corexty 15 — 6y
Ad

Answer this question