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

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

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

3 comments

0

No both changing the size and position breaks the welds you will need to make new ones

0

how though?

0

To what is it welding?

1 answer

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

1 comment

0

Helped you?

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