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

issues with tweening on the client?

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?

3 comments

0

You could change the size on server to the desired size instantly and only then tween it on client.

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.

0

also sorry that was directed at the flag from the admin. thats a good point, ill try it out now. thanks

1 answer

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.

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