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

Is there any way to resize a part on a loop without breaking its weld?

Asked by
1GlF 42
6 years ago
Edited 6 years ago

Basically I want a brick with a SphereMesh to get bigger using a loop, but it always breaks its weld, no matter what I do. Here is the (current) code:

while wait() do
        script.Parent.Mesh.Scale = script.Parent.Mesh.Scale + Vector3.new(0.4,0.4,0.4)
        script.Parent.Size = script.Parent.Size + Vector3.new(0.4,0.4,0.4)
end
0
No both changing the size and position breaks the welds you will need to make new ones User#5423 17 — 6y
0
how though? 1GlF 42 — 6y
0
To what is it welding? royee354 129 — 6y

1 answer

Log in to vote
0
Answered by
royee354 129
6 years ago
Edited 6 years ago
while wait() do
script.Parent.Mesh.Scale = script.Parent.Mesh.Scale + Vector3.new(0.4,0.4,0.4)
script.Parent.Size = script.Parent.Size + Vector3.new(0.4,0.4,0.4)
W = Instance.new("Weld")
W.Part0 = --Whatever is your Part0--
W.C0 --Whatever is your Part0--.CFrame:inverse() 
W.Part1  = --Whatever is your Part1--
W.C1 = --Whatever is your part1--.CFrame:inverse()
W.Parent = --Whatever is your part1--
end
0
Helped you? royee354 129 — 6y
Ad

Answer this question