Try: char:TranslateBy(Vector3.new(0, 20, 0) - root.Position)
Yeah same problem happening. I donāt think thereās a solution where I only use the server. I think Iāll try having it get the orientation from the client or something. TYSM though
At this point Iām starting to suspect that this could be some kind of bug since it shouldnāt make a difference on the rotation whether you change the position on the server or the client
I suggest you report this to Roblox just in case, and I also wish you luck finding a solution to this problem
Alright Iām reporting it as a bug, but I get the feeling itās been like this for a long time and has become expected behaviour or something even though barely anyone seems to be talking about it. Hopefully itās okay tho and gets fixed. Thanks for helping
UPDATE:
I managed to find a way around it. Basically, the server tells the client to, for a specific amount of time, send a certain CFrame in a loop until that time has passed. That CFrame is the CFrame of the camera IF it was facing forward, basically ignoring its X or Y orientation I forgot which one. You have to use the CFrame of the camera because the server is gonna mess with the characterās CFrame which will mess everything up on the client, so you need a more controlled CFrame that also faces where your character is facing and the camera is perfect for this (assuming youāre in shift lock, otherwise I just send the humanoidrootpart CFrame). THEN on the server, thereās a variable that stores the most recent camera CFrame sent. After that, I just simply move the characterās CFrame forward every frame using the lookvector of the most recent camera CFrame. The result is that the character moves forward in the direction it is facing on the client, with the downside of higher ping boosting you in a delayed direction, but the positive of your hitbox being more accurate from your perspective.
Idk if Iām gonna use this forever because I can also move the character forward on the client and extrapolate its position on the server to keep the hitboxes as accurate as possible, but this camera CFrame method works almost exactly how I imagined my original idea would work. Either way, Iām keeping your answer as the solution since the position changing the orientation is most likely a bug (which I found out I canāt report because you need a higher forum level or somethingā¦)
https://gyazo.com/29901010bafbc066803c8a66c4774f82 <ā this is how it looks at 150-200 ping I think, because I was using the ping simulation thing at the time
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.