Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local user=game.Players.localPlayer;
- local color=while true do
- script.Parent.Color = Color3.new(math.random(), math.random(), math.random())
- wait(0.5)
- end
- local generate=function()
- local particle=Instance.new'Part';
- particle.Anchored=true;
- particle.CFrame=CFrame.new(user.Character.Torso.CFrame.p);
- particle.FormFactor='Custom';
- particle.Size=Vector3.new(.5,.5,.5);
- particle.TopSurface='Smooth';
- particle.BrickColor=BrickColor.new(color);
- local random=math.random;
- local randSet1={random(1,2),random(1,2),random(1,2)};
- local randSet2={random(1,5),random(1,5),random(1,5)};
- local cf={0,0,0};
- for _,v in next,randSet1 do
- cf[_]=((v==1 and 1)or -1)*randSet2[_];
- end;
- particle.Parent=user.Character;
- particle.CFrame=particle.CFrame*CFrame.new(cf[1],cf[2],cf[3]);
- for i=0,1,0.1 do
- particle.Transparency=i;
- particle.CFrame=particle.CFrame*CFrame.new(0,0.1,0);
- wait'';
- end;
- particle:remove'';
- end;
- repeat
- coroutine.wrap(generate)();
- wait'';
- until false;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement