#help me with vfx emit in moon animator
1 messages · Page 1 of 1 (latest)
im doing it throught animation events btw
put a attribute in the particle
i already did it tho
its doing only emit count, but i want it to do all 3 attributes
cuz u didnt code it
** You are now Level 4! **
for _,ParticleEmitter in workspace.sword.HumanoidRootPart:GetDescendants() do
if ParticleEmitter:IsA("ParticleEmitter") then
local time = the atribute
task.wait(time)
ParticleEmitter:Emit(ParticleEmitter:GetAttribute("EmitCount") or 1)
end
end
what did u put on your code?
the thing you sent
...
thats not what i want tho, i want for it to get an attributes of all particle emitters
in the script its getting only "EmitCount" attribute
i want it to get the other 2 too
local delay = the atribute
local duration = the other atribute
ohh alr
ty
for _,ParticleEmitter in workspace.sword.HumanoidRootPart:GetDescendants() do
if ParticleEmitter:IsA("ParticleEmitter") then
local delay = EmitDelay
local duration = EmitDuration
ParticleEmitter:Emit(ParticleEmitter:GetAttribute("EmitCount") or 1)
end
end
like this
?
@shy zealot
no, check how did u do it for the EmitCount attribute
do i just copy the line and change "EmitCount" to other attribute?
** You are now Level 9! **
doesnt work
is it supposed to be like this?
for _,ParticleEmitter in workspace.sword.HumanoidRootPart:GetDescendants() do
if ParticleEmitter:IsA("ParticleEmitter") then
ParticleEmitter:Emit(ParticleEmitter:GetAttribute("EmitCount") or 1)
ParticleEmitter:Emit(ParticleEmitter:GetAttribute("EmitDelay") or 1)
ParticleEmitter:Emit(ParticleEmitter:GetAttribute("EmitDuration") or 1)
end
end
no
can you write how its supposed to be pls
cuz idk how do i make it work