Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Welds How to swap Part0 and Part1?

Why do welds do this, Every time I create a weld it decides to use the biggest part as the rotation or movement in C0, C1

How can I swap the part0 and part1 and have it work properly

2 answers

✓ Accepted answer

Question

Welds How to swap Part0 and Part1?

Answer

Save a reference to the corresponding indexes and then swap them around when redeclaring the Part0 and Part1

local weld = ... --// reference to some weld

local newPart0 = weld.Part1 --// notice we're using `Part1` instead of `Part0` because we want toswap them. 
local newPart1 = weld.Part0 --// same for `Part0` as said above. 

weld.Part0 = newPart0
weld.Part1 = newPart1 

3 comments

0

Is their a difference from manual doing it in studio then script? cause every time i do it manually and it doesn't one work one way from the other way.. i'll show you a gif or video

0

Part0 and part 1 Work! But not what i want to move and rotate https://gyazo.com/a234564f065676115b507a8e724f363f Try to swap them Here Gif https://gyazo.com/912d10b6c2e5904570af96162ae1bbc9

0

Plus i dont want the bottom piece to move i want the top.. https://gyazo.com/dfbb322bd9f6f2ba4f6d242a5a48467b

Theres a lot of plugins for welding.

1 comment

0

i know that but i wanna know why it does this.

This discussion is preserved as it was. New answers, comments, and votes are closed.