#help me with vfx emit in moon animator

1 messages · Page 1 of 1 (latest)

little shuttle
#

someone knows how do i make so it gets a duration and delay of particle emitter?

for _,ParticleEmitter in workspace.sword.HumanoidRootPart:GetDescendants() do
if ParticleEmitter:IsA("ParticleEmitter") then
ParticleEmitter:Emit(ParticleEmitter:GetAttribute("EmitCount") or 1)
end
end

little shuttle
little shuttle
#

its doing only emit count, but i want it to do all 3 attributes

shy zealot
#

cuz u didnt code it

little shuttle
#

like

dark lavaBOT
#

studio** You are now Level 4! **studio

little shuttle
#

i copied this code from a video

#

lol

#

thats why im asking for help

shy zealot
shy zealot
#

what did u put on your code?

little shuttle
shy zealot
#

...

little shuttle
#

??

#

i have no clue how to script

#

dont blame me

little shuttle
#

in the script its getting only "EmitCount" attribute

#

i want it to get the other 2 too

shy zealot
little shuttle
#

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
little shuttle
dark lavaBOT
#

studio** You are now Level 9! **studio

little shuttle
#

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

little shuttle
#

can you write how its supposed to be pls

little shuttle