Advertisement
kanewutt

fewfef

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