How to create magnet effect?

I’m wanting to create a magnet affect where the blocks fly towards the character. However, nothing seems to happen at all

entity.PrimaryPart:ApplyImpulse(Character.PrimaryPart.Position)
2 Likes

You can use BodyPosition, and set the Position the the position in world where is the other magnet

I also tried using BodyPosition, on a model with all unanchored parts, and setting the Position to be my characters RootPart, and it never moves

Change the BodyPosition’s other properties than the position to the highest number you can get. Or use the documentation.

I’ve messed with all the properties of the BodyPosition, nothing made it move :confused:

If you are okay with it, I can use my computer some hours later and I will try to do it for you. Tell me if you managed to fix it though

It looks like BallInSocket Constraint could help, it looks pretty good actually:


(Funny to play around)