✓ Accepted answer
The brick with the ParticleEmitter:
This is quite simple really. All you need to do to create a ParticleEmitter is insert a ParticleEmitter object in a part. After that, it's just playing around with the properties to find what you want.
Making the sphere grow and shrink:
Again, extremely simple. To do this, you'd use a loop. There are three kinds, for, while, and repeat. The one that you should probably use is for, because you can loop it for a certain amount of time. To get a sphere to shrink and grow, we'd do something like this:
for i = 1, 10 do
sphere.Size = sphere.Size + Vector3.new(1, 1, 1)
wait()
end
for i = 1, 10 do
sphere.Size = sphere.Size - Vector3.new(1, 1, 1)
end
- Making the sphere change in transparency:
This is basically the exact same thing as making a block grow, you'd use a loop. Whenever you want to show a gradual change in something without repeating your code, loop.
for i = 1, 5 do
sphere.Transparency = sphere.Transparency + 0.1
wait()
end
for i = 1, 5 do
sphere.Transparency = sphere.Transparency - 0.1
end
If you have any other questions, feel free to message me, and don't forget to accept the answer if it helped you!
3 comments
Three days? He must know another language then. Really, Lua's syntax is incredibly easy to play with. But if this is his first language, wow, that guy is good.
I made meteors fall from the sky in four days :P
You are a god.