Hello im making a elevator and it has welds, but i dont want it to fall, how can i prevent it from falling without removing the welds or using anchoring it?
Following up from the comments,
You can tween a model using for
loops and SetPrimaryPartCFrame()
. Note that you'll need a primary part for this to work.
Setting the CFrame directly will also ignore objects/terrain in the way of the position, but this will move the entire model with or without welds.
local model = workspace.Model -- assume model local goalBrick = workspace.Goal -- assume part -- example function tweenModel(model, goal) -- tweens the model to the goal local start = model.PrimaryPart.Crame local step = 1 -- the higher this is, the faster it'll go for i = 0, 100, step do local newCF = start:Lerp(goal, i/100) -- CFrame:Lerp(goal, alpha) creates a CFrame that is interpolated between start and goal by alpha. (i.e) if alpha is 0.5, the returned CFrame will be 50% of the way between start and goal model:SetPrimaryPartCFrame(newCF) wait(0.1) end end tweenModel(model, goalBrick.CFrame)