Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Issues with particle acceleration?

Asked by 5 years ago
while true do
        script.Parent.ParticleEmitter.Acceleration = Vector3.new(0, 0, 0.4)
        wait(.5)
        script.Parent.ParticleEmitter.Acceleration = Vector3.new(0, 0, 0.8)
end

I want to make a particle rock back and forth slowly but this doesn't seem to work.

Does anyone have a fix to this?

0
why is it under an attachment tho User#19524 175 — 5y
0
because its the smallest point for an emitter LoganboyInCO 150 — 5y

2 answers

Log in to vote
1
Answered by 5 years ago

From your explanation I'm guessing you'd do-

script.Parent.ParticleEmitter.Acceleration = Vector3.new(0,0,0.4)

while true do
    for i = 1,4 do -- Brings it to 0.8 
        script.Parent.ParticleEmitter.Acceleration = script.Parent.ParticleEmitter.Acceleration + Vector3.new(0,0,0.1)
    wait(.5)
    end

    wait() -- Any interval of time between

    for i = 1,4 do -- Brings it back to 0.4 
        script.Parent.ParticleEmitter.Acceleration = script.Parent.ParticleEmitter.Acceleration - Vector3.new(0,0,0.1)
    wait(.5)
    end
end
Ad
Log in to vote
0
Answered by 5 years ago

What your doing is moving it one way by reversing that and making it go the opposite way , Using negatives it will rock back and forth pretty smoothly.

while true do
        script.Parent.ParticleEmitter.Acceleration = Vector3.new(0, 0, 0.4)
        wait(.5)
        script.Parent.ParticleEmitter.Acceleration = Vector3.new(0, 0, 0.8)
wait(.5)
        script.Parent.ParticleEmitter.Acceleration = Vector3.new(0, 0, -0.4)
        wait(.5)
        script.Parent.ParticleEmitter.Acceleration = Vector3.new(0, 0, -0.8)
wait(.5)
end

Answer this question