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

Why does this weld do this?

Asked by 9 years ago
han = Instance.new("Part", game.Workspace)
han.Size = Vector3.new(1,1,1)
w = Instance.new("Weld", player.Character["Right Arm"])
w.Part0 = player.Character["Right Arm"]
w.Part1 = han
w.C1 = player.Character["Right Arm"].CFrame * CFrame.new(0,0,-2)

It makes my character stuck pretty much. I can't move and it puts me down to the baseplate.

Also this one does same thing

han = Instance.new("Part", game.Workspace)
han.Size = Vector3.new(1,1,1)
han.CanCollide = false
w = Instance.new("Weld", han)
w.Part0 = han
w.Part1 = player.Character["Right Arm"]
w.C0 = player.Character["Right Arm"].CFrame * CFrame.new(0,0,-2)

2 answers

Log in to vote
0
Answered by 9 years ago

Weld makes anything stick, like glue. Try change it to smooth.

Ad
Log in to vote
0
Answered by
neff111 20
9 years ago

I have 2 ideas why you were having this issue, so here.

wait(1)
player=game.Players.LocalPlayer
han = Instance.new("Part", game.Workspace)
han.Size = Vector3.new(1,1,1)
han.Position=Vector3.new(1,1,1)
han.CanCollide = false
w = Instance.new("Weld", han)
w.Part0 = han
w.Part1 = Char["Right Arm"]
w.C0 = CFrame.new(0,-2,0)

Answer this question