Help with hitbox and combat system

so I have made a Melee System but the issue is that in the studio everything works fine and perfect but ingame the hitbox its kind of slow , by that I mean that after the animation plays and hits the player it takes some time to deal the dmg and do the stun to the Enemy Player.

Studio : https://gyazo.com/3da162f90f2cae686eead8d0cd58a4c3
Game : https://gyazo.com/07206d64fb2237840bfa732d5ce434b4

Iam not sure if this can be noticed in a picture but basically that’s my issue
for hitbox detection i use .Touched

Any help or suggestion will be appreciated
I can provide code as well if its of any use

1 Like

Any waits in the .Touched function? The other possible cause is Server Lag. When using it on studio, it’s a self hosted server, but when uploading it to full Roblox it is a server hosted by them. That gap between you and the server might be the lag.

there is only one wait at the end but I don’t think that’s the issue because its only the Event debounce
also ingame my ping is btwn 100-200 wich is fine :thinking:

1 Like

Roblox is currently being slow. Try again in a few hours.

1 Like

its an issue of a few days already i dont think its roblox being slow