What kind of script would I need to change a part’s shape?

What i want to create is a part that once a square stud touches it, will automatically change that stud’s shape into a sphere. Is there a specific type of script that would work particularly well for this, without causing the brick to become lodged In another?

script.Parent.Touched:Connect(function(hit) -- what touched it
	if hit.Name == ("SquareStud") then -- check if it's name matches
		hit.Shape = ("Ball") -- changes the shape into a ball
	end
end)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.