Adding onto my previous post agagaasduasksfjvuasdfj
(Forgot to set the settings for AlignOri so the thing is just gonna flail around)
As you can see, the part just floats there after setting the MaxForce to the Math thing I talked about earlier. Since it can only support itself, any slight touch causes it to, I guess, stop floating.
Code
-- You can do all this without using a script, just showing you the script to make it easier to visualize
local TweenService = game:GetService("TweenService")
local info1 = TweenInfo.new(3,Enum.EasingStyle.Quad,Enum.EasingDirection.In,0,true,0)
local Folder = script.Parent
local model = Folder.Model
local Follow = Folder.Follow
local AlignPos = Folder.AlignPosition
local AlignOri = Folder.AlignOrientation
local MoveTween = TweenService:Create(Follow,info1,{Position = Follow.Position+Vector3.new(0,5,0)})
local Gravity = workspace.Gravity -- 196.2
local AssemblyMass = model.PrimaryPart.AssemblyMass -- Assumes Model has PrimaryPart set, 48.125
local MaxForce = model.PrimaryPart.AssemblyMass*Gravity
AlignPos.MaxForce = MaxForce -- 9442.125
model.PrimaryPart:SetNetworkOwner(game.Players:WaitForChild("iATtaCk_Noobsi",100))
while true do
MoveTween:Play()
MoveTween.Completed:Wait()
task.wait(1)
end
As such, to combat this, we add an extra amount of force to the MaxForce to fix that problem and make it fally.
AlignPos.MaxForce = MaxForce*1.017 + 400
the amount of force you add is honestly pretty hard to find since the more AssemblyMass you have, the more mass you need. For the most part adding 400 to things that don’t have much AssemblyMass tend to work.
If you only want the Model to move up and down only so you can avoid this:
You can simply change the ForceLimitMode of the AlignPos to PerAxis and set the Y value to the specified value and the other axises to math.huge()
local AlignPos = Folder.AlignPosition
AlignPos.ForceLimitMode = Enum.ForceLimitMode.PerAxis
AlignPos.MaxAxesForce = Vector3.new(math.huge,MaxForce,math.huge)
-- math.huge is pretty much infinity
Now for AlignOri, again, still no clue. Since torque also depends on the length you’re standing from, which makes it all the more harder to calculate. Honestly I’d just set the torque to the MaxForce and hope for the best.
local MaxForce = model.PrimaryPart.AssemblyMass*Gravity
AlignOri.MaxTorque = MaxForce
Really when you use AlignPos and AlignOri it just becomes a “get close enough” guessing game