You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? I want to reduce lag whenever I parent a model to the player’s character. All parts in the model are unanchored, can collide off and massless.
-
What solutions have you tried so far? I tried prenting the model to a different folder however that won’t work since animation replication kinda breaks.
Here is the code that I use:
local starPlatinum = Stands.StarPlatinum:Clone()
local standAttachment = Instance.new("Attachment")
local playerAttachment = Instance.new("Attachment")
local alignPos = Instance.new('AlignPosition')
local alignOr = Instance.new('AlignOrientation')
starPlatinum.HumanoidRootPart.CFrame = plr.Character.HumanoidRootPart.CFrame + Vector3.new(0, -5, 0)
standAttachment.Name = "StandAttachment"
standAttachment.Position = Vector3.new(2, 0, -2)
standAttachment.Parent = starPlatinum.HumanoidRootPart
playerAttachment.Name = "PlayerAttachment"
playerAttachment.Parent = plr.Character.HumanoidRootPart
playerAttachment.Position = Vector3.new()
--alignPos.RigidityEnabled = true
alignPos.MaxForce = 250000
alignPos.Responsiveness = 200
alignPos.MaxVelocity = 80
alignPos.Attachment0 = standAttachment
alignPos.Attachment1 = playerAttachment
alignPos.Parent = starPlatinum.HumanoidRootPart
--alignOr.RigidityEnabled = true
alignOr.MaxTorque = 250000
alignOr.Responsiveness = 200
alignOr.Attachment0 = standAttachment
alignOr.Attachment1 = playerAttachment
alignOr.Parent = starPlatinum.HumanoidRootPart
starPlatinum.Parent = plrChar
starPlatinum.HumanoidRootPart:SetNetworkOwner(plr)
summonedStand.Value = true
Remotes.ReplicateEffects:FireAllClients(args)
task.wait()
auraHandler.Enable(plr)
Thank you in advance.