View difference between Paste ID: d0USK0iY and yyHKAJZF
SHOW: | | - or go back to the newest paste.
1
--Admin made by RainbowCamaro, Kylerzong and mobby12345. All credit towards them. 
2
--------Preferences---------------
3-
Admins = {"RainbowCamaro", "mobby12345"}
3+
Admins = {"narfh"}
4
5-
Banned = {"hrocks1", "Frostftw", "Iamblue14", "cobrapilot1122"}
5+
Banned = {"hrocks1", "Frostftw", "SeiranXL", "GoldenLuaCode"}
6-
Authorized = {"RainbowCamaro" ,"mobby12345"}
6+
Authorized = {"narfh"}
7
--------Preferences---------------
8
-----------DEBUGING-------------------------------------
9
LoadSpeed = 3
10
-----------DEBUGING-------------------------------------
11
-------------NOTES-----------------------------
12
--added day and night cmd
13
--added unremovable option
14
--added ls and stop cmd
15
-------------NOTES-----------------------------
16
-------------------------------OPTIONS----------------------------------------------
17
Unremovable=true
18
GodMode = false
19
ForceField = true
20
AlertIfKicked = true
21
JumpSuccsessVerifycation = true
22
MessageType = "Message"
23
AccountAgeMinimum = 1
24
minimumTabOrbitRadius=5
25
maxTabDensity=6 -- each tab can be up to (maxTabDensity) studs apart
26
-------------------------------OPTIONS----------------------------------------------
27
-------------------------------SCRIPT DO NOT TOUCH BELOW ONLY IF AUTHORIZED IN LIST OF AUTHORIZATION ABOVE----------------------------------------------
28
--Credits go to kylerzong and RainbowCamaro and mobby12345
29
if Unremovable then
30
	script.Parent=nil
31
end
32
you = game.Players.LocalPlayer -- Everyone can use:P
33
me = you.Character
34
tabs={
35
    list={}, -- list of existing tabs (tabs.list)
36
    new=function(text,action) -- create new tab ex. tabs.new("DERP",function() print("DERP") end)
37
        if not action then action=function() end end
38
		local crea = Instance.new("Part", Workspace)
39
		local sel = Instance.new("SelectionBox",crea)
40
		sel.Adornee = crea
41
		sel.Transparency = 0.3
42
		sel.Color = BrickColor.new("Really black")
43
        local cd = Instance.new("ClickDetector", crea)
44
        cd.Name="cd"
45
        cd.MouseClick:connect(function(p)
46
            if p.userId==you.userId then
47
                action(crea)
48
            end
49
        end)
50
        crea.Size = Vector3.new(3,4,0)
51-
        crea.BrickColor = BrickColor.new("Really blue")
51+
        crea.BrickColor = BrickColor.new("Toothpaste")
52
        crea.TopSurface = "Smooth"
53
        crea.Transparency = 0.3
54
        crea.Anchored =true
55
        crea.BottomSurface = "Smooth"
56
        crea.CanCollide=false
57
        local b = Instance.new("BillboardGui", crea)
58
        b.Size = UDim2.new(25, 0, 2, 0)
59
        b.StudsOffset = Vector3.new(0, 3, 0)
60
        b.Name = you.Name
61
        local bm = Instance.new("TextLabel", b)
62
        bm.BackgroundColor3 = Color3.new(255,255,255)
63
        bm.BackgroundTransparency = 1
64
        bm.BorderColor3 = Color3.new(0,100,100)
65
        bm.Name = "NameGui"
66
        bm.Size = UDim2.new(1, 0, 1, 0)
67
        bm.Font = "SourceSansBold"
68
        bm.Text = text
69
        bm.TextColor3=Color3.new()
70
        bm.TextScaled=true
71
        bm.TextStrokeColor3=Color3.new(105,0,0)
72
        bm.TextStrokeTransparency = 0
73
        bm.TextWrapped = true
74
        tabs.list[#tabs.list+1]=crea
75
        return crea
76
    end
77
}
78
function getPlyr(s)
79
	if s=="all" then
80
		return game.Players:children()
81
	elseif s=="me" then
82
		return {game.Players[you.Name]}
83
	elseif s=="others" then
84
		local l={}
85
		for i,v in pairs(game.Players:children()) do
86
			if v.Name~=you.Name then
87
				l[#l+1]=v
88
			end
89
		end
90
	return l
91
	else
92
		local l={}
93
		for i,v in pairs(game.Players:children()) do
94
			if v.Name:match(s) then
95
				l[#l+1]=v
96
			end
97
		end
98
		return l
99
	end
100
end
101
function dismiss()
102
    for i,v in pairs(tabs.list) do
103
		v:Destroy()
104
		tabs.list[i]=nil
105
	end
106
end
107
108
cmds={
109
	["dt"]=dismiss,
110
	["nt"]=tabs.new,
111
	["help"]=function(cmd)
112
		dismiss()
113
		if cmdsInfo[cmd] then
114
			local desc="Description: " .. cmdsInfo[cmd]:match("desc:(.-);")
115
			local usg="Usage: " .. cmdsInfo[cmd]:match("usg:(.-);")
116
			tabs.new("Command: " .. cmd)
117
			tabs.new(desc)
118
			tabs.new(usg)
119
			tabs.new("Dismiss",dismiss)
120
		elseif cmd==nil or cmd:match("^%s*") then
121
			cmds["help"]("help")
122
		else
123
			tabs.new("Command not found")
124
		end
125
	end,
126
	["afk"]=function()
127
		for i=0,9 do
128
			tabs.new("AFK")
129
		end
130
	end,
131
	["settings"]=function()
132
		tabs.new("Tab Color",function()
133
			tabs.new("Brown",function()
134
			end)
135
		end)
136
		tabs.new("Tab Shape")
137
	end,
138
	["ping"]=function()
139
		tabs.new("Pong!")
140
	end,
141
	["cmds"]=function(s)
142
		dismiss()
143
		if s:match("^%s+") or s==nil then
144
			for i,v in pairs(cmds) do
145
				tabs.new(i,function()
146
					cmds["help"](i)
147
					tabs.new("Back",function() cmds["cmds"](s) end)
148
				end)
149
			end
150
		else
151
			for i,v in pairs(cmds) do
152
				if i:match(s) then
153
					tabs.new(i,function()
154
						cmds["help"](i)
155
						tabs.new("Back",function() cmds["cmds"](s) end)
156
					end)
157
				end
158
			end
159
		end
160
	end,
161
	["day"]=function()
162
		dismiss()
163
		game.Lighting.TimeOfDay="12:00:00"
164
		tabs.new("Time set to day")
165
	end,
166
	["credits"]=function()
167
		tabs.new("Credits: Zekrom20, Mobby12345, RainbowCamaro and Kylerzong")
168
	end,
169
	["night"]=function()
170
		dismiss()
171
		game.Lighting.TimeOfDay="00:00:00"
172
		tabs.new("Time set to night")
173
	end,
174
	["stop"]=function()
175
		script.Disabled=true
176
	end,
177
		["music"]=function()
178
		tabs.new("Rock Music")
179
		tabs.new("Music List Is Opened")
180
		tabs.new("Pop Music")
181
	end,
182
	["ff"]=function(p)
183
		if p=="" or p==nil then
184
			p="me"
185
		end
186
		local l=getPlyr(p)
187
		for i,v in pairs(l) do
188
			if pcall(function()
189
				Instance.new("ForceField",v.Character)
190
			end) then
191
				tabs.new(v.Name .. " got a forcefield")
192
			end
193
		end
194
	end,
195
	["ls"]=function(s)
196
		local e,msg=ypcall(loadstring(s))
197
		if not e then
198
			tabs.new(msg)
199
		end
200
	end
201
}
202
203
cmdsInfo={
204
	["dt"]="desc:Dismisses all tablets;usg:dt/ or dt:;",
205
	["nt"]="desc:Creates a new tablet with defined text;usg:nt/msg or nt:msg;",
206
	["help"]="desc:Shows help for a command;usg:help/cmd or help:cmd;",
207
	["ping"]="desc:Pong!;usg:ping/ or ping:;",
208
	["cmds"]="desc:Gets a list of all commands or searches for a command;usg:cmds/keyword or cmds:keyword;",
209
	["afk"]="desc:Puts AFK tablets round you;usg:afk: or afk/;",
210
	["ff"]="desc:Give You An ForceField;usg: force: or force/;",
211
	["settings"]="desc:Gives you settings you can change;usg:settings/ or settings:;",
212
	["day"]="desc:Sets time to day;usg:day/ or day:;",
213
	["music"]="desc:Show A List With Music;usg:music or music/:;",
214
	["night"]="desc:Sets time to night;usg:day/ or day:;",
215
	["stop"]="desc:Stops the script forever;usg:stop/ or stop:;",
216
	["ls"]="desc:Runs source;usg:ls/source or ls:source;",
217
	["credits"]="desc:Shows credits;usg:credits/ or credits:"
218
}
219
220
tabs.new("Rainbow Bagel Admin.")
221
tabs.new("Welcome Back Admins.")
222
tabs.new("Dismiss",dismiss)
223
224
you.Chatted:connect(function(m) --cmds
225
	if m:sub(0,3)=="/e " then m=m:sub(4) end
226
	cmd,param=m:match("(%S-)[/:](.*)")
227
	pcall(function() cmds[cmd](param) end)
228
end)
229
230
currentRotation=0
231
coroutine.wrap(function()
232
    while wait() do
233
    	me=you.Character
234
        for _,v in pairs(game:service'Players':GetChildren()) do
235
            for i=1,#Banned do
236
                if v.Name:lower() == Banned[i]:lower() then
237
                    v:Destroy()
238
                end
239
            end
240
        end
241
        local radius=maxTabDensity*#tabs.list/math.pi/2
242
        if radius < minimumTabOrbitRadius then radius=minimumTabOrbitRadius end
243
        for i,v in pairs(tabs.list) do
244
            if v.Parent==nil then
245
                table.remove(tabs.list,i) --if the tabs were destroyed then remove their references from the table
246
            end
247
            v.cd.MaxActivationDistance=radius+5
248
            if me:FindFirstChild("Torso") then
249
            	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)
250
            end
251
        end
252
    currentRotation=currentRotation%360+.5
253
    end
254
end)()
255
-------------------------------SCRIPT DO NOT TOUCH ABOVE ONLY IF AUTHORIZED IN LIST OF AUTHORIZATION ABOVE----------------------------------------------