Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait'';
- script.Parent=nil;
- --[[
- Micro Nil Open Source
- ]]
- local session_id=math.floor(math.ceil(math.random(1,5002)%255*2.5)+125.6773)*75;
- session={
- ['commands']={ };
- ['body']={
- ['colors']={};
- ['other']={};
- };
- ['User']=game:service'Players'.localPlayer;
- ['services']=function(index)return game:service(index:sub(1,1):upper()..index:sub(2))end;
- ['functions']={ };
- };
- session.commands={
- ['Character']={'Spawns <Character>','/char',function()
- session.functions.spawn'';
- end};
- ['Source']={'Views the script\'s source','/source',function()
- local it=Instance.new'Message';
- it.Parent=session.services'workspace';
- local source=[[http://pastebin.com/LiY1n9wC]];
- for i=1,#source do
- it.Text=source:sub(1,i)..(function()rtn='';for derp=1,#source-i do rtn=rtn..string.char(math.random(47,67))end;return rtn; end)();
- wait(0.06);
- end;
- wait(2);
- it:remove'';
- end};
- };
- session.functions={
- spawn=function()
- local char=session.services'insertService':loadAsset(68452456):children''[1];
- char.Torso.CFrame=CFrame.new(0,50,0);
- pcall(function()session.User.Character:remove''end);
- for _,v in pairs(session.body.colors)do
- pcall(function()char[_].Color=v;end);
- end;
- for _,h in pairs(session.body.other)do
- pcall(function()h:clone''.Parent=char;end);
- end;
- char.Parent=workspace;
- char.Name=session.User.Name;
- char:makeJoints'';
- session.User.Character=char;
- workspace.currentCamera.CameraType='Custom';
- workspace.currentCamera.CameraSubject=char.Humanoid;
- end;
- bubble=function(msg,color)
- color=color or(function()local c={'Red','Blue','Green'};return c[math.random(1,3)]end)();
- msg=msg or'Label';
- pcall(function()
- game:service'Chat':Chat(session.User.Character.Head,msg,color);
- end);
- end;
- onChatted=function(msg)
- local user=session.User;
- session.functions.bubble(msg);
- print(msg);
- table.foreach(session.commands,function(cmdName,cmdTable)
- if(msg:find(cmdTable[2]))then
- ypcall(function()cmdTable[3](msg:sub(msg:find(cmdTable[2])+1))end);
- end;
- end);
- end;
- };
- repeat
- wait'';
- until session.User and session.User.Character and session.User.Character:findFirstChild'Torso';
- for i,v in pairs(session.User.Character:children'')do
- if(not v:isA'Part'and not v:isA'Script'and not v:isA'LocalScript')then
- session.body.other[#session.body.other+1]=v:clone();
- else
- if(v:isA'Part')then
- session.body.colors[v.Name]=v.Color;
- end;
- end;
- end;
- session.User.Chatted:connect(function(m)session.functions.onChatted(m)end);
- session.functions.bubble'Micro nil loaded';
- session.functions.bubble'Chat /source for a link to this script';
- session.functions.bubble'Chat /char for a character';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement