Why is it that a part is Anchored the player cant move?

I put this under scripting support since it has to do with my code. I have a rope connecting to the play to a part, but when the part is anchored the player freezes. When the part is unanchored you can move around. I am trying to make a web type thing like spider man and the part needs to be anchored. My goal is to have the player swing.

Anchored Part:
video
Unanchored Part:
video

Code Snippet:

		local part1 = Instance.new("Part", workspace)
		part1.Anchored = true
		part1.CanCollide = false
		part1.Position = mouse.Hit.Position
		
		local Attachment0 = Instance.new("Attachment", part1)
		local Attachment1 = Instance.new("Attachment", character.RightHand)
		
		local rope = Instance.new("RopeConstraint", workspace)
		rope.Visible = true
		rope.Color = BrickColor.new("Institutional white")
		rope.Attachment0 = Attachment0
		rope.Attachment1 = Attachment1
1 Like

Hmm :face_with_monocle:. Have you checked that none of the body parts are anchored?

Yep, Ive been having this issue for a while and still cant seem to fix it :sweat_smile: :frowning_face:

It could have to do with the rope, and what attachment0 is a child of. Try flipping it, and making attachment0 the attachment on the player and not the part.

Instead of anchoring the part, try welding the part to a surface instead.

1 Like

I have tried welding the same thing occurs

Interesting, searching online I have found out it’s just the humanoid spaghetti code the humanoid really doesn’t like it when you connect another part to the character model unless it’s via Motor6D.

Here is the explanation, the work around is below the explanation.

1 Like

Ive flipped it and Im still just floating.

Seems like you just need to put a indent here
line nnuember 4

1 Like

This isnt working for me for some reason

you need another indent. at line 5.4. Indent 5 times

1 Like

what? Im confused, I dont understand what you mean.

Just think harder. Find it within

1 Like

I have no idea what your talking about.

2 Likes

lol, got it to work. Thanks a lot for this link.

1 Like