#VFX spawning on a part and not handle

1 messages · Page 1 of 1 (latest)

tulip pumice
#
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Debris = game:GetService("Debris")
local sword = script.Parent
local tool = script.Parent

tool.Equipped:Connect(function()
local SwordTrail = ReplicatedStorage:WaitForChild("VFX"):WaitForChild("DarkPurple")
        for _, attachmentTemplate in ipairs(SwordTrail:GetChildren()) do
            if attachmentTemplate:IsA("Attachment") then
                local attachmentClone = attachmentTemplate:Clone()
                attachmentClone.Parent = tool


                for _, emitter in ipairs(attachmentClone:GetChildren()) do
                    if emitter:IsA("ParticleEmitter") then
                        emitter:Emit(10) 
                    end
                end


                Debris:AddItem(attachmentClone, 1)
            end
        end
    end)


```, It's a server script located inside of the tool
#

oh wait mb wrong code

#
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Debris = game:GetService("Debris")
local sword = script.Parent
local tool = script.Parent

tool.Equipped:Connect(function()
local SwordTrail = ReplicatedStorage:WaitForChild("VFX"):WaitForChild("DarkPurple")
        for _, attachmentTemplate in ipairs(SwordTrail:GetChildren()) do
            if attachmentTemplate:IsA("Attachment") then
                local attachmentClone = attachmentTemplate:Clone()
                attachmentClone.Parent = tool


                for _, emitter in ipairs(attachmentClone:GetChildren()) do
                    if emitter:IsA("ParticleEmitter") then
                        emitter:Emit(10) 
                    end
                end


                Debris:AddItem(attachmentClone, 1)
            end
        end
    end)


#

here

opaque ledge
#

debris in 2025

#

use this

#
attachmentClone.Parent = sword.Handle
task.delay(1,function() attachmentClone:Destroy() end)
tulip pumice
#

That inst wanst my issue

#

my issue is that the fricking thing the particles wont spawn on the handle

#

but on some random part

opaque ledge
#

yes

#

debris additem adds it to workspace

tulip pumice
#

yeah i just tried urs it still wont wwork

green mossBOT
#

studio** You are now Level 5! **studio

tulip pumice
#

i've been sitting at this stupid script for like 3 hours

#

trying to figure out what i did wrong

opaque ledge
#

try printing the handle’s position