#[SOLVED] Game works in studio but breaks in game

1 messages · Page 1 of 1 (latest)

pearl wigeon
#

One image where the hitbox is nowhere near the NPC is in game
The other where it's attached to the wrist is in studio.

Why? Why is my game different, and how do i fix this?

last musk
#

code?

small zinc
#

Are you using a WeldConstraint rather than a Weld?

pearl wigeon
#

[SOLVED] Game works in studio but breaks in game

#

problem

        self.ComboPart.CFrame = self.Attachment.WorldCFrame```
sucked
made it
```lua
        local bodyPart = self.Character:FindFirstChild(moveData.Part)
        if not bodyPart then return end
        
        self.ComboPart.CFrame = bodyPart.CFrame * moveData.Offset

is better