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
#VFX spawning on a part and not handle
1 messages · Page 1 of 1 (latest)
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
debris in 2025
use this
attachmentClone.Parent = sword.Handle
task.delay(1,function() attachmentClone:Destroy() end)
That inst wanst my issue
my issue is that the fricking thing the particles wont spawn on the handle
but on some random part
yeah i just tried urs it still wont wwork
** You are now Level 5! **
i've been sitting at this stupid script for like 3 hours
trying to figure out what i did wrong
try printing the handle’s position