Im experimenting with my code out of pure curiosity.
Im trying to tween a sphere into a block shape. Is this possible?
I have tried this:
function animation.Test(x:BasePart)
local info = TweenInfo.new(3, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0.5)
local properties = {
["Shape"] = Enum.PartType.Block
}
local tween = tweenServ:Create(x, info, properties)
tween:Play()
end
it is not working so far, but I would love to hear what can or cannot happen with this type of code.
No, this is not possible. It is only possible to tween types which support numeric interpolation. BasePart.Shape is an Enum which cannot be interpolated, therefore it cannot be tweened (basically there is no in-between value from Enum.PartType.Sphere and Enum.PartType.Block)
Not only that, but geometry in Roblox isn’t as versatile as in Blender. You literally cannot animate geometry in any form. Unless ofcourse you do some tricks on unions