My Code:
For some reason when I set the CFrame of the hitbox and press Q, my character rotates with the Hitbox… Why is this and how can I fix it?
My Code:
For some reason when I set the CFrame of the hitbox and press Q, my character rotates with the Hitbox… Why is this and how can I fix it?
Here, I forgot to upload a video aswell!
Try setting the hitbox’s parent after you have set all the properties
It worked, Thank you very much! Can you explain why?
The problem was that since you were setting the parent from the beggining, there was an instance on physics calculations where the game had to move your character along the hitbox because of the weld and CanCollide property was on, setting the parent after the CFrame and CanCollide makes it so physics calculation only start after these properties are with their correct values.
Ah, I see. Again, Thank you very much for your quick assistance!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.