Advertisement
DrawingJhon

particle emitter

Apr 2nd, 2021
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.02 KB | None | 0 0
  1. local part = workspace.PointElectric
  2. part:ClearAllChildren()
  3. local emitter = Instance.new("ParticleEmitter", part)
  4. emitter.Texture = "rbxassetid://243098098"
  5. local ckp = ColorSequenceKeypoint.new
  6. local nkp = NumberSequenceKeypoint.new
  7. emitter.Color = ColorSequence.new{
  8.     ckp(0, Color3.fromRGB(70, 155, 255));
  9.     ckp(0.972, Color3.fromRGB(255, 255, 255));
  10.     ckp(1, Color3.fromRGB(255, 255, 255));
  11. }
  12. emitter.Size = NumberSequence.new{
  13.     nkp(0, 1);
  14.     nkp(0.0769, 3.37);
  15.     nkp(0.14, 0.312);
  16.     nkp(0.206, 3.62);
  17.     nkp(0.253, 0.188);
  18.     nkp(0.347, 3.5);
  19.     nkp(0.405, 0.0625);
  20.     nkp(0.448, 3.5);
  21.     nkp(0.496, 0.312);
  22.     nkp(0.58, 3.81);
  23.     nkp(0.619, 0.25);
  24.     nkp(0.682, 3.69);
  25.     nkp(0.722, 0.188);
  26.     nkp(0.782, 3.69);
  27.     nkp(0.8, 0.0625);
  28.     nkp(0.853, 3.62);
  29.     nkp(0.905, 0.0625);
  30.     nkp(0.952, 4.06);
  31.     nkp(1, 1);
  32. }
  33. emitter.Lifetime = NumberRange.new(1, 5)
  34. emitter.Rate = 25
  35. emitter.Rotation = NumberRange.new(0, 360)
  36. emitter.Speed = NumberRange.new(0)
  37. emitter.EmissionDirection = "Bottom"
  38. emitter.LightEmission = 1
  39. emitter.LightInfluence = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement