Client Side Being Laggy Compared To Server

Making a tower defense with a walking function. I don’t know why but the client side has a delay on the walking. And when the unit stops to attack the unit instantly gets teleported forward to match the servers speed.

I’m pretty sure theres a property we can disable to fix this but I don’t know which.
(Really sorry there isnt a video my computer is having problems uploading one)

The server should handle all units and enemies especially on a tower defense game. If this is being handled on the client, this can easily be exploited by exploiters. I suggest you only make the placement system on the client and everything else on the server.

Yes thats exactly what i did, everything is run on server of course, but its laggy on the client for some reason even though i have 18 ping.

Ah, that is probably caused by physics. Could you test this by placing a part and unanchoring it to see how fast it falls (in-game)?

Is client being sometimes delayed compared to server actually due to physics? And can i get more specific details like do i place the part in server mode or client mode?

I’ve never touched network owner so this is a new side of game developing for me. And no the part is completely fine and falls down the way it should. Could u tell me more about the network owner stuff?

Nevermind, do not do what I said on the previous reply as it can be exploited. If the part is falling down perfectly it is not affected by physics. What is the core issue here, you stated the units get teleported, is the game “freezing” and continuing later?

Yes they’re lagging, stopping for a split second and teleporting on the client but move perfectly smoothly on the server (20 ping). For some reason I’m not able to upload videos, if I was able to i can show you clearly. If you’re willing to help would you mind if I have your discord so I can send the video there? I’d really appreciate it.

Studio runs both server and client in one application, on live game the server is on Roblox’s side

I’m not quite understanding what you’re trying to say

I mean don’t rely on Studio, as that runs it’s server mode on the same computer you’re testing on
Instead test it on Roblox Player

Hmm this could be a problem with your internet but I doubt it since you said it was 20 ping. Could you clarify if the server is on 20 ping or you? You could also try testing this outside of studio. If you want to reach out on discord my username is the same as here.

I just tested it on roblox player, the issue is still there

I’m on 20 ping. Alright, I’m gonna add you right now

How would I check the servers ping?

I believe this can be checked by plugins since GetValue can only be called by them or api calls to the games api. However you said it is runnig perfectly on the server, so could you please send the video from discord.

image

This is you correct? I’ve already sent the request.

Could you please clarify your username?

MY username is yokoiaxis. White profile eevee in the middle.

Anchor the enemy and use tween service