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