so im making some sort of dash system using cframes, but for some reason the position of the character is off between the client and server side (and also the direction seems to be off sometimes) despite the cframe only being changed in the server script
#char position being different client side and server side
1 messages · Page 1 of 1 (latest)
i made the position to be sent from the localscript to try and make it seem less janky cuz of lag
(like the direction being a few moments delayed)
i would also like to keep the dash mechanic to be teleport rather than linear velocity
That’s just ping
it’s not really something you can fix
what
the position isnt delayed
its just entirely different
oh then that shouldn’t happen if it’s done on the server
it your trying to do it on both ends it would
why dont u jus do all the calculations from the server
and dont use cframe directly
pivotto or moveto
or use linearvelocity or somethn
ur jus going about this all wrong, this looks like a chatgpt script to me
i've mentioned that i dont want to use lv
because im trying to go for a teleport effect
you need to
cos ur always gonna get rollback for one
especially when ur sending freely available information the server could more accurately pinpoint
stop using chatgpt
and actually look at roblox documentation
im sending position because the position would be delayed in the server
so the server is seeing a few moments late than the client's
also
use lookvector if anything
if you want a directional axis
idk why ur using toworldspace and directly modifying the humanoidrootpart
this whole script makes no sense
to avoid delays use pivot or use lv
it is literally designed for this kind of thing, you're just being unnecessarily lazy
a lv module script?
honestly if you dont know how to help me then dont help at all
linear velocity module script
you're not looking for look vector
and also
the hrp has a root attachment
so you're just creating unnecessary attachments
so? it gets deleted after abit anyways
if you're making a fighting game with 50 players