#Lag Compensation

1 messages · Page 1 of 1 (latest)

frank coral
#

Could someone help me fix a lag compensation for my combat system?
it doesnt work properly

frank coral
#

dm me

frank coral
#

broo i wont send the code here

silent nest
frank coral
#

idk i thought someone would try to steal the code

silent nest
#

Bro nobodies gonna steal code 😭

frank coral
#

alr

silent nest
#

they can't even use it because say you have module scripts, they don't have the module scripts too so, they are going to get an error and it will break

#

your code is theft-safe 👍

frank coral
#

yea i know but i was just a little afraid

sullen sorrelBOT
#

studio** You are now Level 1! **studio

frank coral
#

imma give the script tmrw

silver sedge
frank coral
#

thanks for letting me know

frank coral
#

so the hitboxes arent spawning in the right position

#

ill show the client

#

local ShootCF = GetShootCF()
Remotes.Fire:FireServer(ShootCF, Spread, workspace:GetServerTimeNow())

silver sedge
frank coral
#

when im aiming at player and fire, the server is spawning the player hitbox in the wrong position so theres no hit

#

the lag compensation doesnt work properlu

#

no errors in the output just wrong positions

silver sedge
#

did you write this?

#

tutorial?

#

or?

frank coral
#

hell no when i needed this i didint know how to do this so i asked claude

sullen sorrelBOT
#

studio** You are now Level 2! **studio

silver sedge
frank coral
#

well i understand the script

#

but i think the client is giving a wrong time info

#

and thats whhy positions are wrong

silver sedge
#

in a nutshell dont bother, wait for server authority

silver sedge
frank coral
#

so what do i do now

silver sedge
#

unless you already understand how lag compensation works, trying to make your own isn't really worth it imo

silver sedge
frank coral
#

alr

frank coral
#

i just had to do clienttime - 0.1

#

and it works

autumn jungle