Keeping an unanchored part at the same position

I’m currently creating a rope swinging system. The system needs the rope’s part to be unanchored for the RopeConstraint to work. So I found a solution and did as the code shows below. I’m wondering if my solution is bad practice or is there a better way of doing it?

RunService.RenderStepped:Connect(function()
	game.Workspace.Rope.CFrame = CFrame.new(0, 58.5, 0)
	game.Workspace.Rope.Velocity = Vector3.new(0,0,0)
end)
2 Likes

There is a rope constraint roblox made, try using that instead.

1 Like

I am using a rope constraint. 30 characters.

1 Like

Why not just use a BodyPosition to keep it in place?

2 Likes

Is there a reason why you cant set the Anchored property during runtime, ropes do not simulate their physics if the part is anchored. They become ‘Active’ once you have unanchored the part again

1 Like

Setting it to anchored will freeze the player’s character, so that’s why I don’t set it to the anchored property.

Hello just a question, how would I use a body position to keep a unanchored part in the same position. Send a script if you would please.

sorry to bump. How could i achieve this without using a bodyforce? I need to account for any other objects such as players on the part.