For some reason the transparency doesn't transition.
for i = 0,1,.05 do
Particle.Transparency = NumberSequence.new(i)
wait()
end
For some reason the transparency doesn't transition.
for i = 0,1,.05 do
Particle.Transparency = NumberSequence.new(i)
wait()
end
##Problems
Your script adds up by .05 really fast, and stops at 1. This will make the transparency seem instant as the loop only has to add up 2 times in like half or less a second.
Although I don’t know NumberSequence that much, I really don’t think it’s necessary for something like this.
##Solutions
Make the third value in the for loop a small value (Ex: .01) or just make the wait a bit longer. You could do both.
Simply change “NumberSequence.new(i)” into “i”.
This is what it should look like :
for i = 0,1,.01 do
Particle.Transparency = i
wait()
end
If you want to adjust how fast or slow the loop goes, simply just mess around with the third value in the loop and the wait value.
Why not just do this?
for i = 1, 10 do
Particle.Transparency = Particle.Transparency + 0.1
wait(0.1) -- Or 0.01 for even smoother..?
end
-- "+" to make it more transparent
-- "-" to make it more visible
Yes but because there is no number inbetween wait() This will seem instant.
I've tried that before. It doesn't work.
But what about just adding 0.1 between the ()? Or for even smoother 0.01?
This discussion is preserved as it was. New answers, comments, and votes are closed.
5 comments
NumberSequence is how it works for particles.
Try it in studio
^ Haven’t tested it, but I checked the wiki and it said Transparency was a NumberSequence value, so I guess you can use that if it works.
How do you do bullet points on these answers?
^ https://forum.scriptinghelpers.org/topic/82/how-to-format-questions-answers-on-the-main-site