Hello everyone,
I'm having a problem...
I have written a small script which is supposed to change the size of the particle emitter by each (0.05) seconds or even faster, however, the particle is the particle of a fire, so it has a NumberSequence like this : NumberSequence.new(0.687, 0)
I'm trying to compare the NumberSequence to another NumberSequence just to make sure everything is fine...
Here is my script, any solution to remove the error?
-- Note : There are IntValues and etc, they don't matter and have nothing to do with the error :]
speed = 0.05
local sequence = NumberSequence.new(0.687, 0)
script.Parent.CanCharge:GetPropertyChangedSignal("Value"):Connect(function()
wait()
while true do
if script.Parent.Properties.Fire.Size <= NumberSequence.new(2, 0) and script.Parent.CanCharge.Value == true then
wait(speed)
script.Parent.Properties.Fire.Size = script.Parent.Properties.Fire.Size + sequence
speed = speed - 0.000085
else
break
end
end
end)
