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

issues with tweening on the client?

Asked by 5 years ago

Please include the code which you are trying to use, so the community will be better-equipped to help you with your problem.

ok so, in my grand conquest to reduce lag in my games move set, I'm trying to transfer all the part tweening to the clients. I've managed this relatively ok, but now the problem is that the size changes are not replicated to the server, so it cant detect if they're touched. I'm also not sure about detecting damage on the client because that sounds like bad practise in terms of vulnerability and stuff. How would you then go about fixing this issue? or if its impossible, any good alternatives to tweening on clients in order to reduce lag?

0
You could change the size on server to the desired size instantly and only then tween it on client. OrangeDoggoo 0 — 5y
0
the code isnt relevent? i explained the problem in the question. im tweening parts on the clients, which means the size isnt replicated, which means i cant detect touched on a server script and is there any way around this. snaplegs 6 — 5y
0
also sorry that was directed at the flag from the admin. thats a good point, ill try it out now. thanks snaplegs 6 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

The smart idea, like one of the lads pointed out in their comments is that you should fire an event to all clients to begin tweening the object then let the server instantly move the part, but that's not very good in longer distances so you can use slower CFrame movements on the server to also move the part, just laggier and much slower but still getting the full effect of collision detection and or better effects when part is being moved with sizable distances.

Ad

Answer this question