Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I'm trying to weld a character to a part, but the part welds to me? [closed]

Asked by
Klocko 20
9 years ago

Hi, I have a function that takes part:Cloned() as an input.

It is supposed to weld me to a spot just below the part as if I'm hanging from it (guess what it's for! :D)

However, my player doesn't even snap to the part, my player just becomes unable to move at all except player animations. However if I unanchor the part, I get a different result: The part is welded to me and I can move around freely with it attached to me.

print("Grabbing edge")
edgePart.Parent=cam --This is workspace.CurrentCamera!
edgePart.Name="GrippedEdge"
edgePart.Anchored=true
edgeWeld=Instance.new("Weld", edgePart)
edgeWeld.Part0=torso
edgeWeld.Part1=edgePart
--Multi-Line C1 incoming!
edgeWeld.C1=CFrame.new(Vector3.new(0, 1.2, 0)+edgeGripOffset,torso.Position+
Vector3.new(torso.CFrame.lookVector.X*3, torso.CFrame.p.Y, torso.CFrame.
lookVector.Y*3))

Closed as Too Broad by Goulstem, NinjoOnline, and woodengop

This question has been closed because it is too broad and is generally unanswerable. Please ask a more specific question.

Why was this question closed?