Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --if you are going to use this, run normally
- pl = game.Players['iispecialeffects']
- mouse=pl:GetMouse()
- colorscheme = BrickColor.new'White'
- function tablet() --Makes tablet.
- t = Instance.new('Part', workspace)
- t.Size = Vector3.new(20,20,1)
- t.BrickColor = colorscheme
- t.Anchored = true
- t.Locked = true
- t.Transparency=0.5
- t.CanCollide=false
- tc = t:Clone()
- end
- tablet() --Calls tablet.
- function gui() --Makes gui.
- sg = Instance.new('SurfaceGui', pl.PlayerGui)
- sg.Adornee = t
- sg.Face = 'Back'
- end
- gui()
- val = Instance.new('StringValue', pl)
- val.Name = 'CommandList'
- function op(str,f) -- Output text (string, function)
- local h = Instance.new('TextButton', sg)
- local v = Instance.new('StringValue', val)
- h.MouseButton1Down:connect(f)
- h.Size = UDim2.new(1,0,1/16,0)
- h.BackgroundColor3 = colorscheme.Color
- h.Position = UDim2.new(0,0,(1/16) *(#val:GetChildren()-1),0)
- h.FontSize = 'Size18'
- h.BorderSizePixel = 0
- h.TextColor3 = Color3.new(1,1,1)
- h.BackgroundTransparency = 0
- h.Text = str
- end
- function clr() --Clear gui.
- val:ClearAllChildren()
- sg:ClearAllChildren()
- end
- function menu(p,isnil) --Command menu for each player.
- op(p.Name,function() end)
- op('Age : '..tostring(p.AccountAge),function() end)
- op('Kill',function() pcall(function() p.Character:BreakJoints() end) end)
- op('[ Exit ]',function() pcall(function() clr(); gm() end) end)
- end
- function gp(p) --Gets the players.
- local plist = {}
- for _,v in pairs(game:service'NetworkServer':children()) do
- if v:GetPlayer() then
- table.insert(plist,v:GetPlayer())
- end
- end
- for i,v in pairs(plist) do
- if v.Parent == game.Players then
- op(v.Name,function() clr(); menu(v); end)
- else
- op('[ Nil ] : '..v.Name,function() clr(); menu(v,true); end)
- end
- end
- op('[ Exit ]',function() pcall(function() clr(); gm() end) end)
- end
- function gm() --General menu. When the admin loads, this is the first thing you see.
- op('Sample Admin',function() end)
- op('By AtlasGrim',function() end)
- op('[ Players ]',function() clr(); gp(pl); end)
- op('[ Test ]',function() clr(); wait(5) gm() end)
- end
- pl.CharacterAdded:connect(function()
- gui()
- val:ClearAllChildren()
- gm()
- end)
- workspace.DescendantRemoving:connect(function(descendant) --To prevent g/c
- if descendant == t then
- t = tc:Clone()
- t.Parent = workspace
- clr()
- pcall(function() sg.Adornee = t end)
- gm()
- end
- end)
- gm() --Calls general menu.
- game:service'RunService'.Stepped:connect(function()
- pcall(function()
- t.CFrame = pl.Character.Torso.CFrame * CFrame.new(0,10,-8) * CFrame.Angles(math.rad(-10),0,0)
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement