I want to convert this into AlignPosition as BodyPosition is deprecated, how can I achieve similar effect?
bodyPositionLift = Instance.new("BodyPosition", humanoidRootPart)
bodyPositionLift.Position = humanoidRootPart.Position + Vector3.new(0, 10, 0)
bodyPositionLift.MaxForce = Vector3.one * 999999
bodyPositionLift.D = 200
bodyPositionLift.P = 800
1 Like
aroloxia
(aro)
#2
You can replace BodyPosition with AlignPosition. AlignPosition uses attachments, so you’ll need to create one on the part. try using this script.
-- Create an attachment
local attachment = Instance.new("Attachment")
attachment.Parent = humanoidRootPart
-- Create AlignPosition
local alignPositionLift = Instance.new("AlignPosition")
alignPositionLift.Parent = humanoidRootPart
alignPositionLift.Attachment0 = attachment
-- Set properties for AlignPosition
alignPositionLift.Position = humanoidRootPart.Position + Vector3.new(0, 10, 0)
alignPositionLift.MaxForce = 999999
alignPositionLift.Responsiveness = 200
alignPositionLift.RigidityEnabled = false
I think this will give you behavior similar to BodyPosition. You can tweak Responsiveness and RigidityEnabled for the effect!
1 Like
I tried that but it did not work.
1 Like
Anyone else can help please? It’ll be greatly appreciated.
1 Like