Not able to make parts follow another part in model

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want to make an ice spike attack for a game I might be making.

  2. What is the issue? Include screenshots / videos if possible!
    The primarypart will go in the right spot but the ice spikes won’t.

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I have tried searching and coming up with my own solutions.
    After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

local Models = game.ReplicatedStorage.Models
local Events = game.ReplicatedStorage.Events

local iceSpikeEvent = Events.IceSpike

local IceSpikes = Models.iceSpikes

iceSpikeEvent.OnServerEvent:Connect(function(Player)
	
	local Character = Player.Character
	local Humanoid = Character:WaitForChild("Humanoid")
	local HRP = Character:WaitForChild("HumanoidRootPart")
	
	local Animator = Humanoid:FindFirstChildOfClass("Animator")
	
	local iceSpikeAnimation = Animator:LoadAnimation(script.IceSpikeAnimation)
	
	HRP.Anchored = true
	
	local Clone = IceSpikes:Clone()
	
	Clone.Parent = game.Workspace
	
	Clone.PrimaryPart.Position = HRP.CFrame.lookVector * 20 + Vector3.new(0, -6, 0)
	
	iceSpikeAnimation:Play()	
	
	for i = 0, 1, .01 do
		Clone.PrimaryPart.CFrame = Clone.PrimaryPart.CFrame:Lerp(HRP.CFrame, i)
	end
	
	iceSpikeAnimation.Stopped:Connect(function()
		HRP.Anchored = false
	end)
end)

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

hello use Model | Documentation - Roblox Creator Hub
example: Clone:SetPrimaryPartCFrame(cframe here)

Oh yeah, forgot that. Thanks. Should do these stuff more often.