How to fix my stand not going infront of me if i summon and desummon

how to fix my stand not going infront of me if i summon and desummon , the output dont have any error and idk how to fix it i try using CFrame and its dosent fix

this is my summon script:

local Standclone = game:GetService("ServerStorage"):WaitForChild("StandModel").TheWorld:Clone() 
	Standclone.Name = "Stand"
	Standclone.Parent = Character
	Standclone.HumanoidRootPart.CFrame = Character.HumanoidRootPart.CFrame
	local standpos = Instance.new("Attachment") 
	standpos.Parent = Character.HumanoidRootPart
	standpos.Name = "StandPosition"
	local alignp = Instance.new("AlignPosition")
	alignp.Parent = Standclone
	alignp.Attachment0 = Standclone.HumanoidRootPart.RootRigAttachment
	alignp.Attachment1 = standpos 
	alignp.MaxForce = 6000
	alignp.Responsiveness = 100
	local aligno = Instance.new("AlignOrientation")
	aligno.Parent = Standclone
	aligno.Attachment0 = Standclone.HumanoidRootPart.RootRigAttachment
	aligno.Attachment1 = standpos 
	aligno.MaxTorque = 6000
	aligno.Responsiveness = 100

and this is my attack script

Character.HumanoidRootPart.StandPosition.CFrame = CFrame.new(0,0,-3)
			wait(.65)
			Character.HumanoidRootPart.StandPosition.CFrame = CFrame.new(-2.5,1,1)

You should set the cframe of the model first, then use a WeldConstraint instead of alighnPosition/Orientation. For example:

local standRoot = standModel.HumanoidRootPart
local characterRoot =  Character.HumanoidRootPart

standRoot.CFrame = characterRoot.CFrame * CFrame.new(0, 0, -5)

local weldConstraint = Instance.new("WeldConstraint")
weldConstraint.Parent = characterRoot
weldConstraint.Part0 = characterRoot
weldConstraint.Part1 = standRoot

Edit: Just for reference I have actually never used align position/orientation, since weldconstraints work better for me in most situations

in summon script and what line?

btw use weld constraints is laggy like is bugging u

local Standclone = game:GetService("ServerStorage"):WaitForChild("StandModel").TheWorld:Clone() 
	Standclone.Name = "Stand"
	Standclone.Parent = Character
	
local standRoot = Standclone.HumanoidRootPart
local characterRoot =  Character.HumanoidRootPart

standRoot.CFrame = characterRoot.CFrame * CFrame.new(0, 0, -5)

local weldConstraint = Instance.new("WeldConstraint")
weldConstraint.Parent = characterRoot
weldConstraint.Part0 = characterRoot
weldConstraint.Part1 = standRoot

https://gyazo.com/cb6bbeb1af69b02d70c7b040b73df38b is like this the character is speeding up and the stand is like teleporting infront of me https://gyazo.com/26184e3b58f27c5e11bfcd0370541ea3

Select all of the parts of the stand, and turn on the “Massless” property

standRoot.CFrame = characterRoot.CFrame * CFrame.new(5, 0, 0)

This will put the stand to the right


standRoot.CFrame = characterRoot.CFrame * CFrame.new(-5, 0, 0)

will put the stand to the left