Advertisement
kanewutt

fegf4e

May 15th, 2016
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. local user=game.Players.localPlayer;
  2. local generate=function()
  3. local particle=Instance.new'Part';
  4. particle.Anchored=true;
  5. particle.CFrame=CFrame.new(user.Character.Torso.CFrame.p);
  6. particle.FormFactor='Custom';
  7. particle.Size=Vector3.new(.5,.5,.5);
  8. particle.TopSurface='Smooth';
  9. particle.BrickColor=BrickColor.new(color);
  10. particle.script.Parent;
  11.  
  12. coroutine.resume(coroutine.create(function()
  13. while wait() do
  14. repeat wait()
  15. part.BrickColor = BrickColor.Random();
  16. until nil
  17. end
  18. end))local random=math.random;
  19. local randSet1={random(1,2),random(1,2),random(1,2)};
  20. local randSet2={random(1,5),random(1,5),random(1,5)};
  21. local cf={0,0,0};
  22. for _,v in next,randSet1 do
  23. cf[_]=((v==1 and 1)or -1)*randSet2[_];
  24. end;
  25. particle.Parent=user.Character;
  26. particle.CFrame=particle.CFrame*CFrame.new(cf[1],cf[2],cf[3]);
  27. for i=0,1,0.1 do
  28. particle.Transparency=i;
  29. particle.CFrame=particle.CFrame*CFrame.new(0,0.1,0);
  30. wait'';
  31. end;
  32. particle:remove'';
  33. end;
  34. repeat
  35. coroutine.wrap(generate)();
  36. wait'';
  37. until false;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement