Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(.5)
- script.Parent=workspace
- --MERCURY
- --[===[
- local a=[=[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z,
- a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z,
- 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, -, +]=]
- local function generateBase64Table()
- local base64Table={};
- for char in (a:gmatch('(.)%,?%s?'))do
- local done=false;
- repeat
- local c=math.random(1,64);
- if(base64Table[c]==nil)then
- base64Table[c]=char;
- done=true;
- end;
- until done==true;
- end;
- print([[local hashString=function(string)
- local base64Hash={]]..string.gsub( table.concat(base64Table,';'), '(%S);',function(a) return("'"..a.."';") end )..[[};
- local hashedString='';
- for char in string:gmatch'(.)'do
- local byte=(char:byte()%64)+1;
- hashedString=hashedString..base64Hash[byte];
- end;
- return hashedString;
- end;]]);
- end;
- generateBase64Table();
- --]===]
- Spawn(function()
- script.Changed:connect(function()
- script:Clone().Parent=workspace;
- print('no pls');
- script.Disabled=true;
- end)
- end) -- Anti death
- admunz={
- ['MemGuy']={Tablets={}},
- ['noone0']={Tablets={}},
- ['noone1']={Tablets={}},
- ['noone2']={Tablets={}},
- ['noone3']={Tablets={}},
- ['']={Tablets={}},
- ['']={Tablets={}},
- ['']={Tablets={}},
- } -- Player Admins
- local btools={73089166,73089190,73089204,73089214,73089229,73089239,73089259}
- local commands={}
- local Http=game:FindService('HttpService')
- local banned={'Mokiros'}
- local lastsound={}
- Num=0
- bet = '!'
- function isAdmin(plName)
- if admunz[plName] then
- return true
- end
- return false
- end
- do
- local function QuaternionFromCFrame(cf) local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() local trace = m00 + m11 + m22 if trace > 0 then local s = math.sqrt(1 + trace) local recip = 0.5/s return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 else local i = 0 if m11 > m00 then i = 1 end if m22 > (i == 0 and m00 or m11) then i = 2 end if i == 0 then local s = math.sqrt(m00-m11-m22+1) local recip = 0.5/s return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip elseif i == 1 then local s = math.sqrt(m11-m22-m00+1) local recip = 0.5/s return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip elseif i == 2 then local s = math.sqrt(m22-m00-m11+1) local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip end end end
- local function QuaternionToCFrame(px, py, pz, x, y, z, w) local xs, ys, zs = x + x, y + y, z + z local wx, wy, wz = w*xs, w*ys, w*zs local xx = x*xs local xy = x*ys local xz = x*zs local yy = y*ys local yz = y*zs local zz = z*zs return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) end
- local function QuaternionSlerp(a, b, t) local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] local startInterp, finishInterp; if cosTheta >= 0.0001 then if (1 - cosTheta) > 0.0001 then local theta = math.acos(cosTheta) local invSinTheta = 1/math.sin(theta) startInterp = math.sin((1-t)*theta)*invSinTheta finishInterp = math.sin(t*theta)*invSinTheta else startInterp = 1-t finishInterp = t end else if (1+cosTheta) > 0.0001 then local theta = math.acos(-cosTheta) local invSinTheta = 1/math.sin(theta) startInterp = math.sin((t-1)*theta)*invSinTheta finishInterp = math.sin(t*theta)*invSinTheta else startInterp = t-1 finishInterp = t end end return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp end
- function clerp(a,b,t)
- local qa = {QuaternionFromCFrame(a)}
- local qb = {QuaternionFromCFrame(b)}
- local ax, ay, az = a.x, a.y, a.z
- local bx, by, bz = b.x, b.y, b.z
- local _t = 1-t
- return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
- end
- end
- function GetDiscoColor(hue)
- local section = hue % 1 * 3
- local secondary = 0.5 * math.pi * (section % 1)
- if section < 1 then
- return Vector3.new(1, 1 - math.cos(secondary), 1 - math.sin(secondary))
- elseif section < 2 then
- return Vector3.new(1 - math.sin(secondary), 1, 1 - math.cos(secondary))
- else
- return Vector3.new(1 - math.cos(secondary), 1 - math.sin(secondary), 1)
- end
- end
- Part = function(x,y,z,color,tr,cc,an,parent)
- local p = Instance.new('Part',parent or mo)
- p.formFactor = 'Custom'
- p.Size = Vector3.new(x,y,z)
- p.BrickColor = BrickColor.new(color)
- p.CanCollide = cc
- p.Transparency = tr
- p.Anchored = an
- p.TopSurface,p.BottomSurface = 0,0
- p:BreakJoints''
- return p
- end
- Weld = function(p0,p1,x,y,z,rx,ry,rz,par)
- local w = Instance.new('Motor',par or p0)
- w.Part0 = p0
- w.Part1 = p1
- w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz)
- return w
- end
- Mesh = function(par,num,x,y,z)
- local msh = 0
- if num == 1 then
- msh = Instance.new("SpecialMesh",par)
- msh.MeshId='rbxasset://fonts/torso.mesh'
- msh.TextureId='rbxasset://3319251'
- end
- if num == 2 then
- msh = Instance.new("SpecialMesh",par)
- msh.MeshId='rbxasset://fonts/head.mesh'
- msh.TextureId='rbxassetid://3319251'
- end
- msh.Scale = Vector3.new(x,y,z)
- return msh
- end
- Tween = function(Weld, Stop, Step,a)
- ypcall(function()
- local func = function()
- local Start = Weld.C1
- local X1, Y1, Z1 = Start:toEulerAnglesXYZ()
- local Stop = Stop
- local X2, Y2, Z2 = Stop:toEulerAnglesXYZ()
- Spawn(function()
- for i = 0, 1, Step or .1 do
- wait()
- Weld.C1 = CFrame.new( (Start.p.X * (1 - i)) + (Stop.p.X * i),(Start.p.Y * (1 - i)) + (Stop.p.Y * i),(Start.p.Z * (1 - i)) + (Stop.p.Z * i)) * CFrame.Angles((X1 * (1 - i)) + (X2 * i), (Y1 * (1 - i)) + (Y2 * i),(Z1 * (1 - i)) + (Z2 * i) )
- end
- Weld.C1 = Stop
- end)
- end
- if a then
- coroutine.wrap(func)()
- else
- func()
- end
- end)
- end
- function CreateCommand(Name, Usage, Description, Function)
- commands[Name] = {Name = Name, Usage = Usage, Description = Description, Function = Function}
- end
- function addpart(tx,col,tell,func)
- if col==nil then col='White' end
- cf = workspace:FindFirstChild(tell) and workspace[tell]:FindFirstChild("Torso") and workspace[tell].Torso:IsA("Part") and workspace[tell].Torso.CFrame + Vector3.new(0,6,0) or CFrame.new(0,10,0)
- local clr=col
- local f=Instance.new('Part',script)
- f.CanCollide=false
- f.Anchored=true
- f.Name=tx
- f.FormFactor='Custom'
- if clr == 'Random' then
- f.BrickColor=BrickColor.Random()
- else
- f.BrickColor=BrickColor.new(clr)
- end
- f.Size=Vector3.new(2,2,2)
- f.CFrame = CFrame.new(cf.p)
- local sel=Instance.new('SelectionBox',f)
- sel.Adornee=f
- sel.Transparency=.7
- sel.Color=f.BrickColor
- local spec=Instance.new('SpecialMesh',f)
- spec.MeshId='http://www.roblox.com/Asset/?id=9856898'
- spec.Scale=Vector3.new(-3,-3,-3)
- table.insert(admunz[tell].Tablets,f)
- bbg=Instance.new('BillboardGui',f)
- bbg.Adornee=f
- bbg.StudsOffset=Vector3.new(0,3,0)
- bbg.Size=UDim2.new(3, 0, 2, 0)
- txt=Instance.new('TextLabel',bbg)
- txt.Text=tx
- txt.BackgroundTransparency=1
- txt.Size = UDim2.new(1, 0, 0.5, 0)
- txt.FontSize='Size14'
- txt.TextColor3=f.BrickColor.Color
- txt.TextStrokeTransparency=0
- spawn(function()
- game:GetService'RunService'.Heartbeat:connect(function()
- for i,v in pairs(admunz[tell].Tablets)do
- if v==f then
- spec.Scale=Vector3.new(math.sin((tick()+i)*5)*3,math.sin((tick()+i)*5)*3,math.sin((tick()+i)*5)*3)
- end
- end
- end)
- end)
- local c=Instance.new('ClickDetector',f)
- c.MaxActivationDistance=math.huge
- c.MouseHoverEnter:connect(function(plr)
- if plr.Name == tell then
- f.Transparency=.7
- sel.Transparency=0
- end
- end)
- c.MouseHoverLeave:connect(function(plr)
- if plr.Name == tell then
- f.Transparency=0
- sel.Transparency=.7
- end
- end)
- c.MouseClick:connect(function(plr)
- if plr.Name == tell then
- if func == nil then
- f:Destroy()
- for i,v in pairs(admunz[tell].Tablets) do
- if v == f then
- table.remove(admunz[tell].Tablets,i)
- end
- end
- else
- local Run,Error=ypcall(function()
- func()
- end)
- if not Run then
- addpart(tostring(Error),'Really red',tell)
- end
- end
- end
- end)
- end
- function Rainbow(name)
- local Parts={}
- plr=Game.Players[name]
- char=plr.Character
- for _,v in pairs(char:GetChildren()) do
- if v.ClassName=="Part" then
- v.Transparency=1
- elseif v.ClassName=="Hat" then
- v.Handle.Mesh.TextureId='rbxassetid://3319251'
- table.insert(Parts,v.Handle)
- end
- end
- t=Part(1,1,1,'',0,false,false,char)
- Mesh(t,1,1,1,1)
- Weld(char.Torso,t,0,0,0,0,0,0)
- table.insert(Parts,t)
- a=Part(1,1,1,'',0,false,false,char)
- Mesh(a,1,.5,1,1)
- Weld(char['Right Arm'],a,0,0,0,0,0,0)
- table.insert(Parts,a)
- a=Part(1,1,1,'',0,false,false,char)
- Mesh(a,1,.5,1,1)
- Weld(char['Left Arm'],a,0,0,0,0,0,0)
- table.insert(Parts,a)
- l=Part(1,1,1,'',0,false,false,char)
- Mesh(l,1,.5,1,1)
- Weld(char['Right Leg'],l,0,0,0,0,0,0)
- table.insert(Parts,l)
- l=Part(1,1,1,'',0,false,false,char)
- Mesh(l,1,.5,1,1)
- Weld(char['Left Leg'],l,0,0,0,0,0,0)
- table.insert(Parts,l)
- h=Part(1,1,1,'',0,false,false,char)
- Mesh(h,2,1,1,1)
- Weld(char.Head,h,0,0,0,0,0,0)
- table.insert(Parts,h)
- Spawn(function()
- while(coroutine.yield())do
- for i=1,#Parts do
- Parts[i].Mesh.VertexColor=GetDiscoColor(tick()*.5)--vertex 4 lyfe
- end
- end;
- end);
- end
- function Dance(name)
- local pl=game.Players[name].Character
- local mo=Instance.new('Model',pl)
- local rad, ca, cf = math.rad, CFrame.Angles, CFrame.new
- local lp = Part(.1,.1,.1,'',1,false,false,mo)
- local rp = Part(.1,.1,.1,'',1,false,false,mo)
- local llp = Part(.1,.1,.1,'',1,false,false,mo)
- local rlp = Part(.1,.1,.1,'',1,false,false,mo)
- local hp = Part(.1,.1,.1,'',1,false,false,mo)
- local tp = Part(.1,.1,.1,'',1,false,false,mo)
- local la = Weld(lp,pl.Torso,-1.5,.5,0,0,0,0)
- local ra = Weld(rp,pl.Torso,1.5,.5,0,0,0,0)
- local ll = Weld(llp,pl.Torso,-.5,-1.5,0,0,0,0)
- local rl = Weld(rlp,pl.Torso,.5,-1.5,0,0,0,0)
- local h = Weld(hp,pl.Torso,0,2,0,0,0,0)
- local t = Weld(tp,pl.Torso,0,0,0,0,0,0)
- Weld(pl['Right Arm'],rp,0,-.5,0,0,0,0)
- Weld(pl['Left Arm'],lp,0,-.5,0,0,0,0)
- Weld(pl['Right Leg'],rlp,0,-.5,0,0,0,0)
- Weld(pl['Left Leg'],llp,0,-.5,0,0,0,0)
- Weld(pl.HumanoidRootPart,tp,0,0,0,0,0,0)
- Weld(pl.Head,hp,0,-.5,0,0,0,0)
- Spawn(function()
- while true do
- Tween(ra,cf(1.5,.5,0) * ca(rad(120),rad(-10),rad(5)),.25)
- Tween(la,cf(-1.5,.5,0) * ca(rad(80),rad(10),rad(-5)),.25)
- Tween(rl,cf(.5,-1.5, 0) * ca(rad(30),0,0),.25)
- Tween(ll,cf(-.5,-1.5, 0) * ca(0,0,-rad(10)),.25)
- Tween(t,cf(0,0.3,0)*ca(0,0,rad(10)),.5)
- Tween(h,cf(0,2,0) * ca(0,rad(30),0),.25)
- wait(.125)
- Tween(t,cf(0,0,0)*ca(0,0,rad(5)),.5)
- wait(.125)
- Tween(ra,cf(1.5,.5,0) * ca(rad(80),0,0),.25)
- Tween(la,cf(-1.5,.5,0) * ca(rad(120),0,0),.25)
- Tween(rl,cf(.5,-1.5,0) * ca(0,0,rad(10)),.25)
- Tween(ll,cf(-.5,-1.5,0) * ca(rad(30),0,0),.25)
- Tween(t,cf(0,0.3,0)*ca(0,0,-rad(10)),.5)
- Tween(h,cf(0,2,0) * ca(0,-rad(30),0),.25)
- wait(.125)
- Tween(t,cf(0,0,0)*ca(0,0,rad(5)),.5)
- wait(.125)
- end
- end)
- end
- function dism(nam)
- ypcall(function()
- if admunz[nam] then
- for i,v in pairs(admunz[nam].Tablets) do
- v:Destroy()
- end
- admunz[nam].Tablets = {}
- end
- end)
- end
- function cdism(nam,nam2)
- ypcall(function()
- if admunz[nam] then
- for i,v in pairs(admunz[nam].Tablets) do
- if v.Name==nam2 then
- table.remove(admunz[nam].Tablets,i)
- v:Destroy()
- end
- end
- end
- end)
- end
- function OnChatted(Spkr, Msg)
- ypcall(function()
- if isAdmin(Spkr.Name) == false then
- return
- end
- if Msg:sub(1,3) == "/e " then
- Msg = Msg:sub(4)
- end
- local usedACommand=false;
- for i,v in pairs(commands) do
- if Msg:lower():match(bet..v.Usage:lower()..'%>?') and usedACommand==false then
- if isAdmin(Spkr.Name) == true then
- usedACommand=true;
- local Run, Error = ypcall(function()
- v.Function(Spkr, Msg:lower():match(bet..v.Usage:lower()..'%>?(.+)')or'');
- end)
- if not Run then
- addpart(tostring(Error), "Really red", Spkr)
- end
- end
- end
- end
- end)
- end
- function GetPlrs(Msg, Plr)
- local R = {}
- if Msg:lower() == "me" then
- table.insert(R, Plr)
- elseif Msg:lower() == "all" then
- for i,v in pairs(game:GetService("Players"):GetPlayers()) do
- table.insert(R, v)
- end
- elseif Msg:lower() == "others" then
- for i,v in pairs(game:GetService("Players"):GetPlayers()) do
- if v.Name ~= Plr.Name then
- table.insert(R, v)
- end
- end
- else
- for i,v in pairs(game:GetService("Players"):GetPlayers()) do
- if v.Name:lower():sub(1 ,#Msg)==Msg:lower() then
- table.insert(R, v)
- end
- end
- end
- return R
- end
- function nplr(plr)
- plr.Chatted:connect(function(msg)
- OnChatted(plr, msg)
- end)
- end
- for i,v in pairs(game:GetService("Players"):GetPlayers()) do
- if admunz[v.Name] then
- addpart('Welcome to Mercury','Black',v.Name)
- end
- nplr(v);
- end
- game:GetService("Players").PlayerAdded:connect(function(plr)
- nplr(plr)
- end)
- Spawn(function()
- game:GetService'RunService'.Heartbeat:connect(function()
- Num=Num+0.0025
- ypcall(function()
- for i,v in pairs(game.Players:GetChildren()) do
- for a,c in pairs(banned) do
- if v==game.Players[c] then
- for z=1,#admunz do
- addpart(v.Name..'tried to connect to the server','Black',admunz[z])
- end
- pcall(v.kick,v);
- pcall(game.Destroy,v);
- end
- end
- end
- end)
- for i,v in pairs(Game:GetService("Players"):GetPlayers()) do
- if v.Character and admunz[v.Name] then
- local Torso = v.Character:findFirstChild("Torso")
- if Torso then
- local plr_tabs = admunz[v.Name].Tablets
- table.foreach(plr_tabs,function(a,as)
- if not as or not as.Parent then
- ypcall(function()
- as:Destroy()
- end)
- ypcall(function()
- table.remove(admunz[v.Name].Tablets, as)
- end)
- else
- for i=1,#admunz[v.Name].Tablets do
- local Parts = admunz[v.Name].Tablets
- local Part = Parts[i]
- Part.CFrame = clerp(Part.CFrame,CFrame.new(Torso.CFrame.p)
- * CFrame.Angles(0, math.rad((360 / #Parts) * i) + Num, 0)
- * CFrame.new(3 + #Parts, math.sin((tick() + i) * 5)/1.5, 0)
- * CFrame.Angles(0, math.rad(90), 0)
- * CFrame.Angles(math.sin((tick() + i) * 5)/2,math.sin((tick() + i) * 5)/2,math.sin((tick() + i) * 5)/2)
- ,.1)
- end
- end
- end)
- end
- end
- end
- end)
- end)
- CreateCommand("Music", "song", "Play music", function(Spkr, Msg)
- local Http=game:service'HttpService';
- local KeyWords = Http:UrlEncode(Msg)
- local Url = 'http://roproxy.tk/catalog/json?Keyword='..tostring(KeyWords)..'&Category=9&ResultsPerPage=11'
- local Assets = Http:JSONDecode(Http:GetAsync(Url))
- dism(Spkr.Name)
- local function List(plr)
- dism(plr.Name)
- for i=1,#Assets do
- addpart(Assets[i].Name,nil,Spkr.Name,function()
- dism(plr.Name)
- addpart('Name: '..Assets[i].Name,nil,plr.Name)
- addpart('Id: '..Assets[i].AssetId,nil,plr.Name)
- addpart('Publisher: '..Assets[i].Creator,nil,plr.Name)
- addpart('Play song','Lime green',plr.Name,function()
- for i,v in pairs(lastsound) do
- v.Volume=0
- v:stop''
- v:Destroy''
- table.remove(lastsound,i)
- end
- local sound=Instance.new('Sound',script);
- sound.SoundId='rbxassetid://'..Assets[i].AssetId;
- table.insert(lastsound,sound)
- sound:play()
- addpart('Stop song','Neon orange',plr.Name,function()
- for i,v in pairs(lastsound) do
- v.Volume=0
- v:stop''
- v:Destroy''
- table.remove(lastsound,i)
- end
- end)
- end)
- addpart('Dismiss','Really red',plr.Name,function()
- dism(plr.Name)
- end)
- addpart('Back','Really blue',plr.Name,function()
- List(plr)
- end)
- end);
- end;
- end
- List(Spkr)
- end)
- CreateCommand("Hat", "hat", "Search hat", function(Spkr, Msg)
- local Http=game:service'HttpService';
- local KeyWords = Http:UrlEncode(Msg)
- local Url = 'http://roproxy.tk/catalog/json?Keyword='..tostring(KeyWords)..'&Subcategory=9&Category=3&ResultsPerPage=11'
- local Assets = Http:JSONDecode(Http:GetAsync(Url))
- dism(Spkr.Name)
- local function List(plr)
- dism(plr.Name)
- for i=1,#Assets do
- addpart(Assets[i].Name,nil,Spkr.Name,function()
- local function showhat(plr)
- dism(plr.Name)
- addpart('Name: '..Assets[i].Name,nil,plr.Name)
- addpart('Id: '..Assets[i].AssetId,nil,plr.Name)
- addpart('Pricing','Royal purple',plr.Name,function()
- dism(plr.Name)
- if tonumber(Assets[i].PriceInRobux) == nil then
- robux=0
- else
- robux=tonumber(Assets[i].PriceInRobux)
- end
- if tonumber(Assets[i].PriceInTickets) == nil then
- tix=0
- else
- tix=tonumber(Assets[i].PriceInTickets)
- end
- if Assets[i].IsLimited==true or Assets[i].IsLimitedUnique==true then
- addpart('Best price: '..Assets[i].BestPrice,nil,plr.Name)
- addpart('This item is limited',nil,plr.Name)
- if robux > 0 then
- addpart('Was R$: '..Assets[i].PriceInRobux,nil,plr.Name)
- else
- addpart('This item has no starter price',nil,plr.Name)
- end
- else
- addpart('This item is not limited',nil,plr.Name)
- if tix > 0 then
- addpart('Price in tix: '..Assets[i].PriceInTickets,nil,plr.Name)
- end
- if robux > 0 then
- addpart('Price in robux: '..Assets[i].PriceInRobux,nil,plr.Name)
- end
- end
- addpart('#Of sales: '..Assets[i].Sales,nil,plr.Name)
- addpart('Back','Really blue',plr.Name,function()
- showhat(plr)
- end)
- end)
- addpart('Remove all hats','Neon orange',plr.Name,function()
- for _,v in pairs(plr.Character:GetChildren()) do
- if v.ClassName=="Hat" then
- v:remove()
- end
- end
- end)
- addpart('Manual hat remove','Neon orange',plr.Name,function()
- dism(plr.Name)
- hats={}
- for _,v in pairs(plr.Character:GetChildren()) do
- if v.ClassName=="Hat" then
- table.insert(hats,v)
- end
- end
- for i,v in pairs(hats) do
- addpart(v.Name,nil,plr.Name,function()
- v:Destroy()
- cdism(plr.Name,v.Name)
- end)
- end
- addpart('Back','Really blue',plr.Name,function()
- showhat(plr)
- end)
- end)
- addpart('Get hat','Lime green',plr.Name,function()
- local hat=game:service'InsertService':loadAsset(Assets[i].AssetId):children()[1];
- hat.Parent=plr.Character;
- end)
- addpart('Dismiss','Really red',plr.Name,function()
- dism(plr.Name)
- end)
- addpart('Back','Really blue',plr.Name,function()
- List(plr)
- end)
- end
- showhat(plr)
- end);
- end;
- end
- List(Spkr)
- end)
- CreateCommand("Gear", "gear", "Search gear", function(Spkr, Msg)
- local Http=game:service'HttpService';
- local KeyWords = Http:UrlEncode(Msg)
- local Url = 'http://roproxy.tk/catalog/json?Keyword='..tostring(KeyWords)..'&Category=5&ResultsPerPage=11'
- local Assets = Http:JSONDecode(Http:GetAsync(Url))
- dism(Spkr.Name)
- local function List(plr)
- dism(plr.Name)
- for i=1,#Assets do
- addpart(Assets[i].Name,nil,Spkr.Name,function()
- local function showgear(plr)
- dism(plr.Name)
- addpart('Name: '..Assets[i].Name,nil,plr.Name)
- addpart('Id: '..Assets[i].AssetId,nil,plr.Name)
- addpart('Pricing','Royal purple',plr.Name,function()
- dism(plr.Name)
- if tonumber(Assets[i].PriceInRobux) == nil then
- robux=0
- else
- robux=tonumber(Assets[i].PriceInRobux)
- end
- if tonumber(Assets[i].PriceInTickets) == nil then
- tix=0
- else
- tix=tonumber(Assets[i].PriceInTickets)
- end
- if Assets[i].IsLimited==true or Assets[i].IsLimitedUnique==true then
- addpart('Best price: '..Assets[i].BestPrice,nil,plr.Name)
- addpart('This item is limited',nil,plr.Name)
- if robux > 0 then
- addpart('Was R$: '..Assets[i].PriceInRobux,nil,plr.Name)
- else
- addpart('This item has no starter price',nil,plr.Name)
- end
- else
- addpart('This item is not limited',nil,plr.Name)
- if tix > 0 then
- addpart('Price in tix: '..Assets[i].PriceInTickets,nil,plr.Name)
- end
- if robux > 0 then
- addpart('Price in robux: '..Assets[i].PriceInRobux,nil,plr.Name)
- end
- end
- addpart('#Of sales: '..Assets[i].Sales,nil,plr.Name)
- addpart('Back','Really blue',plr.Name,function()
- showgear(plr)
- end)
- end)
- addpart('Get Gear','Lime green',plr.Name,function()
- local gear=game:service'InsertService':loadAsset(Assets[i].AssetId):children()[1];
- gear.Parent=plr:findFirstChild('Backpack')or Instance.new('Backpack',plr);
- end)
- addpart('Dismiss','Really red',plr.Name,function()
- dism(plr.Name)
- end)
- addpart('Back','Really blue',plr.Name,function()
- List(plr)
- end)
- end
- showgear(plr)
- end);
- end;
- end
- List(Spkr)
- end)
- CreateCommand("Dismiss", "dt", "Dismisses your tablets", function(Spkr, Msg)
- dism(Spkr.Name)
- end)
- CreateCommand("Loadstring", "ls", "Loads a string", function(Spkr, Msg)
- NLS(msg:sub(5),game.Players[Spkr.Name].Backpack)
- end)
- CreateCommand("Dismiss All", "adt", "Dismisses all tablets", function(Spkr, Msg)
- for i,v in pairs(admunz)do
- dism(v)
- end
- end)
- CreateCommand('God','god','Gods <player>',function(Spkr, Msg)
- for _,player in next,GetPlrs(Msg,Spkr)do
- addpart('Goded '..player.Name,'Random',Spkr.Name)
- pcall(function()
- local it=player.Character.Humanoid
- it.Name="isGod"
- it.MaxHealth=10000000
- it.Health=10000000
- end);
- end;
- end);
- CreateCommand('Btools','btls','Gives <player> building tools',function(Spkr, Msg)
- for _,player in next,GetPlrs(Msg,Spkr)do
- addpart('Gave '..player.Name..' building tools','Random',Spkr.Name)
- pcall(function()
- for i,v in pairs(btools) do
- local gear=game:service'InsertService':loadAsset(v):children()[1];
- gear.Parent=player:findFirstChild('Backpack')or Instance.new('Backpack',player);
- end
- end);
- end;
- end);
- CreateCommand('UnGod','ungod','Un-Gods <player>',function(Spkr, Msg)
- for _,player in next,GetPlrs(Msg,Spkr)do
- addpart('Un-Goded '..player.Name,'Random',Spkr.Name)
- pcall(function()
- local it=player.Character.isGod
- it.Name="Humanoid"
- it.MaxHealth=100
- it.Health=100
- end);
- end;
- end);
- CreateCommand("Explode", "expl", "Explode <player>", function(Spkr, Msg)
- for _,player in next, GetPlrs(Msg,Spkr)do
- addpart('Exploded '..player.Name,'Random',Spkr.Name)
- pcall(function()
- local Exp=Instance.new('Explosion',player.Character);
- Exp.Position=player.Character:GetModelCFrame().p;
- end);
- end;
- end)
- CreateCommand('Respawn','respawn','Respawns <player>',function(Spkr, Msg)
- for _,player in next,GetPlrs(Msg,Spkr)do
- addpart('Respawned '..player.Name,'Random',Spkr.Name)
- pcall(function() player:loadCharacter(true); end);
- end;
- end);
- CreateCommand('Rainbow','rainb','Makes <player> a rainbow',function(Spkr, Msg)
- for _,player in next,GetPlrs(Msg,Spkr)do
- addpart('Made '..player.Name..' rainbow','Random',Spkr.Name)
- pcall(function() Rainbow(player.Name); end);
- end;
- end);
- CreateCommand('Dance','dnc','Makes <player> dance',function(Spkr, Msg)
- for _,player in next,GetPlrs(Msg,Spkr)do
- addpart('Made '..player.Name..' dance','Random',Spkr.Name)
- pcall(function() Dance(player.Name); end);
- end;
- end);
- CreateCommand('Ban','ban','Bans <player>',function(Spkr, Msg)
- for _,player in next,GetPlrs(Msg,Spkr)do
- addpart('Banned '..player.Name,'Random',Spkr.Name)
- table.insert(banned,player.Name)
- pcall(player.kick,player);
- pcall(game.Destroy,player);
- end;
- end);
- CreateCommand('Kick','kick','Kicks <player>',function(Spkr, Msg)
- for _,player in next,GetPlrs(Msg,Spkr)do
- addpart('Kicked '..player.Name,'Random',Spkr.Name)
- pcall(player.kick,player);
- pcall(game.Destroy,player);
- end;
- end);
- CreateCommand('Add Admin','addmod','Adds <player> to the mod list',function(Spkr, Msg)
- for _,player in next,GetPlrs(Msg,Spkr)do
- admunz[player.Name]={Tablets={}};
- addpart('Gave '..player.Name..' moderator premissions','Random',Spkr.Name)
- addpart('You are now an admin!','Lime green',player.Name);
- addpart('Welcome to Mercury','Black',player.Name);
- end;
- end);
- CreateCommand('Message','msg','Creates a message with <text>',function(Spkr, Msg)
- local Message=Instance.new('Message',workspace);
- Message.Text=string.format('[%s]: %s',Spkr.Name, Msg);
- game:service'Debris':addItem(Message,5);
- end);
- CreateCommand('Hint','hint','Creates a hint with <text>',function(Spkr, Msg)
- local Message=Instance.new('Hint',workspace);
- Message.Text=string.format('[%s]: %s',Spkr.Name, Msg);
- game:service'Debris':addItem(Message,5);
- end);
- CreateCommand("Ping", "ping", "Creates a tablet with a desired message", function(Spkr, Msg)
- ypcall(function()
- addpart(Msg,'Random',Spkr.Name)
- end)
- end)
- CreateCommand("Commands", "cmds", "Brings up the commands menu", function(Spkr, Msg)
- dism(Spkr.Name)
- local function Commands(plr)
- dism(plr.Name)
- for i,v in pairs(commands) do
- addpart(i,nil,plr.Name,function()
- dism(plr.Name)
- addpart('Name: '..i,nil,plr.Name)
- addpart('Usage: '..v.Usage,nil,plr.Name)
- addpart('Example: '..(bet..v.Usage..'>'),nil,plr.Name);
- addpart('Description: '..v.Description,nil,plr.Name)
- addpart('Dismiss','Really red',plr.Name,function()
- dism(Spkr.Name)
- end)
- addpart('Back','Really blue',plr.Name,function()
- Commands(plr)
- end)
- end)
- end
- end
- Commands(Spkr)
- end)
Advertisement
Add Comment
Please, Sign In to add comment