Cloning Effect to player and having it stay with them

I want an effect I made to clone to the player and stay with them/track them

I’ve gotten it to clone and position to the player properly, and parent to the player but it doesn’t follow them/track them, its disconnected

I’ve done this before but it was a super long time ago and I’ve got no idea what I had done, I am probably overlooking something super simple as well so sorry >:(

	local Character = player.Character
	if Character then
		local HumanoidRootPart = Character:FindFirstChild("HumanoidRootPart")
		if HumanoidRootPart then
			local Effect = AbilityParticles.LeapEffect:Clone()
			-- Set the position relative to HumanoidRootPart
			Effect.Parent = Character:WaitForChild("HumanoidRootPart")
			Effect.CFrame = Character:WaitForChild("HumanoidRootPart").CFrame * CFrame.new(0, 0, -1)
			-- Clean up the effect after a certain duration
			game.Debris:AddItem(Effect, 5)
		end
	end
end

You could try using welds, and setting Part0 to the effect part and Part1 to wherever on the player you want the effect to be. To change the position on the player specifically you use either C0 or C1 I forgot

Weld | Documentation - Roblox Creator Hub

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.