Hi! I'm trying to low down the speed of a ParticleEmitter little by little with this script
1 | while true do |
2 | script.Parent.Speed = script.Parent.Speed - NumberRange.new( 1 , 1 ) |
3 | wait( 0.1 ) |
4 | end |
On the output it says: " Workspace.Top gun.Nozzle.ParticleEmitter.Script:2: attempt to perform arithmetic on field 'Speed' (a userdata value)" Any solution?
I've never really used particle emitters before, but this code works.
1 | local Val = 50 |
2 | script.Parent.Speed = NumberRange.new(Val) |
3 | while true do |
4 | Val = Val- 1 |
5 | script.Parent.Speed = NumberRange.new(Val) |
6 | wait( 0.1 ) |
7 | end |