How to make a hitbox that moves along with the player but i can determine the position its separated from the player

You can use already existing frameworks for hitboxing, for example https://devforum.roblox.com/t/shapecasthitbox-for-all-your-melee-needs/3624241