Particle doesn't following character

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

  1. I making health potion and added health particle and weld it to humonoidrootpart but particle doesnt following just standing still.

  2. Particle doesnt following character

  3. I tried normal weld and WeldConstraint

      script.Parent.Activated:Connect(function(plr)
	if db == false then
		db = true
		local humanoid = script.Parent.Parent:FindFirstChild("Humanoid")
		local weld = Instance.new("WeldConstraint")
		efekt.Parent = game.Workspace
		efekt.Position = script.Parent.Parent.HumanoidRootPart.Position
		weld.Part0 = efekt
		weld.Part1 = script.Parent.Parent.HumanoidRootPart
		weld.Parent = script.Parent
		humanoid.Health += can
		script.Parent:Destroy()
		wait(4)
		efekt:Destroy()
	end
end)
6 Likes

Check if the part is not anchored if that doesn’t work enable this Property

3 Likes

Oh ye I forgat about it but it’s felling from map now.

2 Likes

Add the particle effect to the player’s humanoidrootpart

3 Likes

Where are you creating the efekt Part?

		efekt.Parent = game.Workspace
		efekt.Position = script.Parent.Parent.HumanoidRootPart.Position -- if you set the Part0 and Part1 without setting the weld.C0 and weld.C1 it should weld right at the center.
		weld.Part0 = efekt

[/quote]

Why not create the ParticleEmitter and just parent it to the HumanoidRootPart as @ali432567 said.

2 Likes

In the begining

1 Like

Well to start, you’re destroying the tool with the script in it, meaning that the effect would stay forever. Is the particleemitter enabled? And if it is then that could start some issues already. Also, make sure the parts’ CanCollide property is disabled or it’ll break the character movement.

2 Likes

If it’s dropping then you aren’t successfully welding it.
You aren’t setting the weld.C0 or C1.

Please post a picture of the entire hierarchy of the items in this script in your workspace window (all the parents and children around the script’s location).
Is this a server script or a localscript?
Is script.Parent.Parent.HumanoidRootPart in the Player in the workspace, or is it in the Players folder?

2 Likes

Its server script


image

2 Likes

I don’t think the attachment is following the part, so maybe it does work but is just not on the part.

1 Like

Yes, but that only answered one of my questions.

If it’s dropping then you aren’t successfully welding it.
You aren’t setting the weld.C0 or C1.

And your picture doesn’t show
Is script.Parent.Parent.HumanoidRootPart in the Player in the workspace, or is it in the Players folder?

Isn’t HumanoidRootPart in the workspace inside the player already.

Please answer more than just one question. I ask questions because I need the answers to be able to help you.
I was asking where your script is looking for the HumanoidRootPart…

Your script has
efekt.Position = script.Parent.Parent.HumanoidRootPart.Position
but because you haven’t answered where the script is located in the game I can’t tell if your script is referencing the Player’s Service in the game, or if it’s directly inside the Player in the game.

Lots of people have come here because their script is trying to reference the player in the Player’s Service instead of the actual player in the workspace while the game is running.

Oh sorry it is just in tool , tool’s script.

And setting the weld.C0 and weld.C1?

No idea what’s c0 and c1 so I didn’t .

It is an ancestor of the player character and where a player’s character’s general position is

1 Like

Nevermind I fixed I just moved weld.parent to upper and its works now