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

Resizing using vector3 causes brick to unweld?

Asked by 7 years ago
Edited 7 years ago

Hi, I resize a part of my sword's blade using this:

hitBox.Size = Vector3.new(0.1, 0.1, 0.1)

, but then when I change it back later down the script, I see that the blade falls through the ground after resizing it to the 0.1, 0.1, 0.1. Why does it unweld and fall through the ground? There is a manual weld in the brick that connects it to another.

Thanks!

1 answer

Log in to vote
0
Answered by 7 years ago

This also happened to me as well when I was resizing a brick that is welded to another brick on Studios. I recommend that if you are changing the part's size through a script (which you are lol), you should create another Weld using the Instance.new("Weld") and messing around with the C0 and C1 to change the part's CFrame. I am not a master at welding through scripting so I suggest maybe to ask another person to do that.

Ad

Answer this question