Hi! I made this pretty simple plugin that builds for u all you need to have this player movement both client and server sided!
Why this?
I saw similar scripts on a few other games and thought yeah, I bet a lot more people would use this if they had it at a click distance, and personally, I love how much more expressive players become by just a simple change!
Here is how it works!
– Idle animation was replaced for this example –
You get two buttons to build your camera, Fixed and Free.
Fixed, works also on PC, but is mostly thought for mobile, takes the center of the screen and makes your player look at that point up to a limited rotation [updated it to be exactly like the Free one, wanted to make it similar to the Donate Me one but i just dont like how it looks :p]
Free, works also on Mobile, but is mostly thought for PC, takes your mouse position on the screen and makes your player look at that point up to a limited rotation [different to Fixed, it doesn’t force you to look in front because you can manually do that with your mouse if you wanted to]
There, you also have three values you can change on the plugin, Server Simulation Distance, Server Update Speed and Server Smoothing.
Server Simulation Distance defines how far in studs can other people see the rest move. The higher the value, the more resources it will consume to depending of course on how many player are there. The default value is set at 150.
Server Update Speed defines how fast the FireServer is triggered on the client. Higher values could help to have a more responsive movement in the server, but the more the players, the more it will consume in resources. I would recommend values around 0.2 and 1.
Server Smoothing defines and corrects how smooth the players move on the server while waiting for the movement updates to come, for example, if my update speed is set to 1, the smoothing will take the middle between every second I have without a new movement from the player in front and smooth it so it doesn’t look choppy, all using the Tween service, with Higher values making movement slower and less responsive, Lower values making movement faster but choppier. I would recommend values around 0.2 and 1.
– Idle animation was replaced for this example –
Here you can see it working also on the server with the default values already provided.
You can download the Plugin here!
Plugin Page
if you find any bug or error, please DM me about it!