Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Admin made by RainbowCamaro, Kylerzong and mobby12345. All credit towards them.
- --------Preferences---------------
- Admins = {"narfh"}
- Banned = {"hrocks1", "Frostftw", "SeiranXL", "GoldenLuaCode"}
- Authorized = {"narfh"}
- --------Preferences---------------
- -----------DEBUGING-------------------------------------
- LoadSpeed = 3
- -----------DEBUGING-------------------------------------
- -------------NOTES-----------------------------
- --added day and night cmd
- --added unremovable option
- --added ls and stop cmd
- -------------NOTES-----------------------------
- -------------------------------OPTIONS----------------------------------------------
- Unremovable=true
- GodMode = false
- ForceField = true
- AlertIfKicked = true
- JumpSuccsessVerifycation = true
- MessageType = "Message"
- AccountAgeMinimum = 1
- minimumTabOrbitRadius=5
- maxTabDensity=6 -- each tab can be up to (maxTabDensity) studs apart
- -------------------------------OPTIONS----------------------------------------------
- -------------------------------SCRIPT DO NOT TOUCH BELOW ONLY IF AUTHORIZED IN LIST OF AUTHORIZATION ABOVE----------------------------------------------
- --Credits go to kylerzong and RainbowCamaro and mobby12345
- if Unremovable then
- script.Parent=nil
- end
- you = game.Players.LocalPlayer -- Everyone can use:P
- me = you.Character
- tabs={
- list={}, -- list of existing tabs (tabs.list)
- new=function(text,action) -- create new tab ex. tabs.new("DERP",function() print("DERP") end)
- if not action then action=function() end end
- local crea = Instance.new("Part", Workspace)
- local sel = Instance.new("SelectionBox",crea)
- sel.Adornee = crea
- sel.Transparency = 0.3
- sel.Color = BrickColor.new("Really black")
- local cd = Instance.new("ClickDetector", crea)
- cd.Name="cd"
- cd.MouseClick:connect(function(p)
- if p.userId==you.userId then
- action(crea)
- end
- end)
- crea.Size = Vector3.new(3,4,0)
- crea.BrickColor = BrickColor.new("Toothpaste")
- crea.TopSurface = "Smooth"
- crea.Transparency = 0.3
- crea.Anchored =true
- crea.BottomSurface = "Smooth"
- crea.CanCollide=false
- local b = Instance.new("BillboardGui", crea)
- b.Size = UDim2.new(25, 0, 2, 0)
- b.StudsOffset = Vector3.new(0, 3, 0)
- b.Name = you.Name
- local bm = Instance.new("TextLabel", b)
- bm.BackgroundColor3 = Color3.new(255,255,255)
- bm.BackgroundTransparency = 1
- bm.BorderColor3 = Color3.new(0,100,100)
- bm.Name = "NameGui"
- bm.Size = UDim2.new(1, 0, 1, 0)
- bm.Font = "SourceSansBold"
- bm.Text = text
- bm.TextColor3=Color3.new()
- bm.TextScaled=true
- bm.TextStrokeColor3=Color3.new(105,0,0)
- bm.TextStrokeTransparency = 0
- bm.TextWrapped = true
- tabs.list[#tabs.list+1]=crea
- return crea
- end
- }
- function getPlyr(s)
- if s=="all" then
- return game.Players:children()
- elseif s=="me" then
- return {game.Players[you.Name]}
- elseif s=="others" then
- local l={}
- for i,v in pairs(game.Players:children()) do
- if v.Name~=you.Name then
- l[#l+1]=v
- end
- end
- return l
- else
- local l={}
- for i,v in pairs(game.Players:children()) do
- if v.Name:match(s) then
- l[#l+1]=v
- end
- end
- return l
- end
- end
- function dismiss()
- for i,v in pairs(tabs.list) do
- v:Destroy()
- tabs.list[i]=nil
- end
- end
- cmds={
- ["dt"]=dismiss,
- ["nt"]=tabs.new,
- ["help"]=function(cmd)
- dismiss()
- if cmdsInfo[cmd] then
- local desc="Description: " .. cmdsInfo[cmd]:match("desc:(.-);")
- local usg="Usage: " .. cmdsInfo[cmd]:match("usg:(.-);")
- tabs.new("Command: " .. cmd)
- tabs.new(desc)
- tabs.new(usg)
- tabs.new("Dismiss",dismiss)
- elseif cmd==nil or cmd:match("^%s*") then
- cmds["help"]("help")
- else
- tabs.new("Command not found")
- end
- end,
- ["afk"]=function()
- for i=0,9 do
- tabs.new("AFK")
- end
- end,
- ["settings"]=function()
- tabs.new("Tab Color",function()
- tabs.new("Brown",function()
- end)
- end)
- tabs.new("Tab Shape")
- end,
- ["ping"]=function()
- tabs.new("Pong!")
- end,
- ["cmds"]=function(s)
- dismiss()
- if s:match("^%s+") or s==nil then
- for i,v in pairs(cmds) do
- tabs.new(i,function()
- cmds["help"](i)
- tabs.new("Back",function() cmds["cmds"](s) end)
- end)
- end
- else
- for i,v in pairs(cmds) do
- if i:match(s) then
- tabs.new(i,function()
- cmds["help"](i)
- tabs.new("Back",function() cmds["cmds"](s) end)
- end)
- end
- end
- end
- end,
- ["day"]=function()
- dismiss()
- game.Lighting.TimeOfDay="12:00:00"
- tabs.new("Time set to day")
- end,
- ["credits"]=function()
- tabs.new("Credits: Zekrom20, Mobby12345, RainbowCamaro and Kylerzong")
- end,
- ["night"]=function()
- dismiss()
- game.Lighting.TimeOfDay="00:00:00"
- tabs.new("Time set to night")
- end,
- ["stop"]=function()
- script.Disabled=true
- end,
- ["music"]=function()
- tabs.new("Rock Music")
- tabs.new("Music List Is Opened")
- tabs.new("Pop Music")
- end,
- ["ff"]=function(p)
- if p=="" or p==nil then
- p="me"
- end
- local l=getPlyr(p)
- for i,v in pairs(l) do
- if pcall(function()
- Instance.new("ForceField",v.Character)
- end) then
- tabs.new(v.Name .. " got a forcefield")
- end
- end
- end,
- ["ls"]=function(s)
- local e,msg=ypcall(loadstring(s))
- if not e then
- tabs.new(msg)
- end
- end
- }
- cmdsInfo={
- ["dt"]="desc:Dismisses all tablets;usg:dt/ or dt:;",
- ["nt"]="desc:Creates a new tablet with defined text;usg:nt/msg or nt:msg;",
- ["help"]="desc:Shows help for a command;usg:help/cmd or help:cmd;",
- ["ping"]="desc:Pong!;usg:ping/ or ping:;",
- ["cmds"]="desc:Gets a list of all commands or searches for a command;usg:cmds/keyword or cmds:keyword;",
- ["afk"]="desc:Puts AFK tablets round you;usg:afk: or afk/;",
- ["ff"]="desc:Give You An ForceField;usg: force: or force/;",
- ["settings"]="desc:Gives you settings you can change;usg:settings/ or settings:;",
- ["day"]="desc:Sets time to day;usg:day/ or day:;",
- ["music"]="desc:Show A List With Music;usg:music or music/:;",
- ["night"]="desc:Sets time to night;usg:day/ or day:;",
- ["stop"]="desc:Stops the script forever;usg:stop/ or stop:;",
- ["ls"]="desc:Runs source;usg:ls/source or ls:source;",
- ["credits"]="desc:Shows credits;usg:credits/ or credits:"
- }
- tabs.new("Rainbow Bagel Admin.")
- tabs.new("Welcome Back Admins.")
- tabs.new("Dismiss",dismiss)
- you.Chatted:connect(function(m) --cmds
- if m:sub(0,3)=="/e " then m=m:sub(4) end
- cmd,param=m:match("(%S-)[/:](.*)")
- pcall(function() cmds[cmd](param) end)
- end)
- currentRotation=0
- coroutine.wrap(function()
- while wait() do
- me=you.Character
- for _,v in pairs(game:service'Players':GetChildren()) do
- for i=1,#Banned do
- if v.Name:lower() == Banned[i]:lower() then
- v:Destroy()
- end
- end
- end
- local radius=maxTabDensity*#tabs.list/math.pi/2
- if radius < minimumTabOrbitRadius then radius=minimumTabOrbitRadius end
- for i,v in pairs(tabs.list) do
- if v.Parent==nil then
- table.remove(tabs.list,i) --if the tabs were destroyed then remove their references from the table
- end
- v.cd.MaxActivationDistance=radius+5
- if me:FindFirstChild("Torso") then
- v.CFrame=CFrame.new(me.Torso.CFrame.p)*CFrame.Angles(0,math.rad(1)*currentRotation+math.rad(360/#tabs.list*i),0)*CFrame.new(0,0,radius)
- end
- end
- currentRotation=currentRotation%360+.5
- end
- end)()
- -------------------------------SCRIPT DO NOT TOUCH ABOVE ONLY IF AUTHORIZED IN LIST OF AUTHORIZATION ABOVE----------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement