Server doesn't have same CFrame as client (Hitbox Detection)

Hello!

I have a skill system that works like this:

  • Player Uses Skill (clicks E button)
  • Player instantly does visuals/vfx things (like fireball movement)
  • Client FiresServer and server tells all other clients to do visuals
  • Server does Hitbox Detection

The problem:

My main problem is that if player quickly rotates (for example with ShiftLock) and uses skill, then Main client’s (Main Client = Player who used skill) visual will move to different location than server’s Hitbox.

Image:
Screenshot_38

In skills, I mainly use Character.PrimaryPart.CFrame, I know that there will be always ping/latency, so it’s not possible to make 100% correct server hitbox (maybe i’m wrong?)

Any ideas how to sync Character’s PrimaryPart CFrame on Server to make Hitbox more accurate?