Part teleports away

When E is pressed there should a disco ball come but it comes for a split second and then goes or it doesnt even come how do i fix it?

robloxapp-20230520-1528308.wmv (2.1 MB)

My code:


I think it might be because you are putting a physics object inside of another object and they react. Maybe try putting it out in front of the HumanoidRootPart just to test and see if the ball drops in front of your character. Also it looks like boogie and boogieball are single objects in the workspace. If they were to fly off and get destroyed you would probably see errors in your output and it would no longer show up. You might want to Clone your 2 parts inside your function before you set the positions.