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

Why does this script makes the character teleport to the welded part?

Asked by
Bertox 159
5 years ago

Hello, I made a script where a Parachute Mesh gets welded to the HumanoidRootPart of a character, but the character is teleporting to the Parachute and not other way round. I have tried a few things but it's not working. This is the part of the script:

local Mesh = game.ServerStorage.Parachute:Clone()
Mesh.Parent = player.Character
local weld = Instance.new("Weld")
weld.Part1 = player.Character.HumanoidRootPart
weld.Part0 = Mesh
weld.C0 = weld.C0 - Vector3.new(0,10,0)
weld.Parent = Mesh

I already tried changing Part1 and Part0 it is not working.

0
I'm actually sure that the weld will keep doing that, however i'm not sure. User#22722 20 — 5y
0
One way to fix it is the place the mesh in place before adding the weld. gullet 471 — 5y

1 answer

Log in to vote
0
Answered by 3 years ago

Use Wait() after moving the part and then create the weld. The time may vary but that's how I fixed my problem with this.

Ad

Answer this question