Attach Particle Effect at players location

Hi,

I am trying to attach a particle effect at a players location in a local script for a few seconds and then remove it. The code below works but when active the player can’t move, I want the effect to follow the player until I remove it.

What am I doing wrong, effect is not anchored.

		local character = player.Character
		local clonedModel = Effect:Clone()
		
		clonedModel.Parent = workspace.CloneTemp
		clonedModel.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
		
		local weld = Instance.new("Weld", game.Players.LocalPlayer.Character.HumanoidRootPart)
		weld.Part0 = game.Players.LocalPlayer.Character.HumanoidRootPart
		weld.Part1 = clonedModel
		
		wait(time)
		
		clonedModel:Remove()

For extra clarification do you mean “effect is not anchored.” by the part(s) is not anchored?

1 Like

Is every BasePart instance inside the model unanchored?

Hi,

For some reason the parts got Anchod again, working now thanks

J