You can write your topic however you want, but you need to answer these questions:
I making health potion and added health particle and weld it to humonoidrootpart but particle doesnt following just standing still.
Particle doesnt following character
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)
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.
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.
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?
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.