Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script:destroy();
- user=game.Players.localPlayer;
- mouse=user:getMouse'';
- MAIN={ };
- arg1='';
- arg2='/';
- core=(function(T,F)
- p=Instance.new('Part',workspace);
- p.formFactor=3;
- p.Size=Vector3.new(2,2,2);--//2.5,3.5,0
- p.Anchored=true;
- p.BrickColor=BrickColor.new'Carnation pink';
- p.CanCollide=false;
- p.TopSurface=0;
- p.BottomSurface=0;
- p.Transparency=.2;
- c=Instance.new('ClickDetector',p);
- c.MaxActivationDistance=math.huge;
- c.MouseClick:connect(function(v)
- if(v.Name==user.Name)then
- F();
- end;
- end);
- b=Instance.new('SelectionBox',p);
- b.Transparency=.8;
- b.Color=BrickColor.new'Really black';
- b.Adornee=p;
- g=Instance.new('BillboardGui',p);
- g.Adornee=p;
- g.StudsOffset=Vector3.new(0,1,0);
- g.Size=UDim2.new(1,0,1,0);
- tl=Instance.new('TextLabel',g);
- tl.Text=T;
- tl.Position=UDim2.new(.5,0,.5,0);
- tl.Font='ArialBold';
- tl.FontSize='Size24';
- tl.TextColor3=BrickColor.White().Color;
- table.insert(MAIN,{core=p;t=tl;se=b;vs=p.Size;});
- return(p);
- end);
- function Match(tx1,tx2)
- if((string.sub(tx1,1,#tx2))==(string.sub(tx2,1,#tx2)))then
- return(true);else return(false);
- end;
- end;
- Cmds={
- Cmd={
- Cmd='cmds';
- Function=(function()
- for i,v in pairs(Cmds)do
- core(v.Cmd,function()close''end);
- end;
- end);
- };
- DISMISS={
- Cmd='dismiss';
- Function=(function()
- close();
- end);
- };
- KICK={
- Cmd='kick';
- Function=(function(NM)
- for i,v in next,game.Players:players''do
- if(Match(v.Name,NM))then
- ypcall(function()
- v:Destroy();
- end);
- if(not(game.Players:findFirstChild(v.Name)))then
- core('Kicked '..v.Name,function()close''end);
- end;
- end;
- end;
- end);
- };
- listPlayers={
- Cmd='players';
- Function=(function()
- for i,v in pairs(game:service'Players':players())do
- core(v.Name,function(a) close(); core('Dismiss',function()close()end);
- core('Kill',function(k)
- v.Character:BreakJoints()
- print('1',v.Parent);
- print('2',v.Parent.Parent);
- print('3',v);
- end);
- end);
- end;
- end);
- };
- KILL={
- Cmd='kill';
- Function=(function(NM)
- for i,v in next,game.Players:players''do
- if(Match(v.Name,NM))then
- ypcall(function()
- v.Character:breakJoints'l0l';
- core('Killed '..v.Name,function()close''end);
- end);
- end;
- end;
- end);
- };
- MOOSIC_2={
- Cmd='mplay';
- Function=(function(M)
- s=Instance.new('Sound',workspace);
- s.SoundId='rbxassetid://'..M;
- s.Looped=true;
- s:play'';
- m=game:service'MarketplaceService':getProductInfo(M);
- s.Name=m.Name;
- core('Now playing:\n'..m.Name..
- '\n'..m.Description..
- '\nCreated/uploaded by user: '..#m.Creator..
- '\ncreated on:'..m.Created,function()close''end);
- end);
- };
- INSERT1={
- Cmd='ins';
- Function=(function(H)
- m=game:service'MarketplaceService':getProductInfo(H);
- game:service'InsertService':LoadAsset(H):children''[1].Parent=user.Character;
- core('Inserted:\n'..m.Name,function()close''end);
- core('Created on: '..m.Created,function()close''end);
- core('Sales: '..m.Sales,function()close''end);
- -- core('Limited item[?]: '..m.IsLimited,function()close''end);
- core('Current price [RBX/ROBUX][?]: '..m.PriceInRobux,function()close''end);
- core('Alternate price [TIX/TICKETS][?]: '..m.PriceInTickets,function()close''end);
- core(m.Description,function()close''end);
- end);
- };
- MSTOP={
- Cmd='mstop';
- Function=(function()
- w=workspace:children'';
- for i=1,#w do
- if(w[i].className=='Sound')then
- core('Deleting sound...\n'..w[i].Name,function()close''end);
- w[i]:destroy();
- end;
- end;
- end);
- };
- };
- --[[Commands=(function()
- close'';
- for i,v in pairs(Cmds)do
- core((arg1..v.Cmd..arg2),function()
- close'';
- end);
- end;
- end);
- ]]
- user.Chatted:connect(function(chat)
- a,b=ypcall(function()
- for i,v in pairs(Cmds)do
- if(Match(chat,(arg1..v.Cmd..arg2)))then
- v.Function(chat:sub(tonumber((#(arg1..v.Cmd..arg2)))+1));
- end;
- end;
- end);
- if(not(a))then
- core('error[] '..b,function()close''end);
- end;
- end);
- close=function()
- for i=1,#MAIN do
- delay(0,function()
- for a=0,1,.1 do
- MAIN[i].core.Transparency=a;
- MAIN[i].core.BrickColor=BrickColor.new'Salmon';
- MAIN[i].t.Transparency=a;
- MAIN[i].t.Text='';
- MAIN[i].se.Transparency=a;
- MAIN[i].se.Color=BrickColor.new'Salmon';
- MAIN[i].vs=Vector3.new(a,a,a);
- wait'';
- end;
- end);
- end;
- while wait'.1'do
- if(MAIN[1].core.Transparency==1)then break; end; end;
- for i=1,#MAIN do
- MAIN[i].core:destroy'';
- MAIN[i]=nil;
- end;
- end;
- rotation=.5;
- while wait''do
- rotation=rotation+0.00035;
- pcall(function()
- for i=1,#MAIN do
- pcall(function()
- position=user.Character.torso.CFrame;
- end);
- local radius=5.2+((#MAIN)*.6);
- x=math.cos((i/#MAIN-(.5/#MAIN)+rotation*2)*math.pi*2)*radius;
- y=math.cos((i/#MAIN-(-3.5/#MAIN)+rotation*-14)*math.pi*-2);
- z=(math.sin((i/#MAIN-(.5/#MAIN)+rotation*2)*math.pi*2)*radius);
- pcall(function()
- tposition=position:toWorldSpace(CFrame.new(x,y,z):inverse'');
- end);
- pcall(function()
- MAIN[i].core.CFrame=CFrame.new(tposition.p,position.p)*CFrame.Angles(math.sin(tick())*7,math.sin(tick())*7,math.sin(tick())*7);
- end);
- end;
- end);
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement