SHOW:
|
|
- or go back to the newest paste.
1 | --MADE BY OneLegend (NOT THE SCRIPT) REGULAR SCRIPT: GO TO LINE 24-27 AND PUT SOME NAMES!!! | |
2 | ||
3 | msg = Instance.new("Message") | |
4 | msg.Parent = game.Workspace | |
5 | - | msg.Text = "Loading OneLegend's Admin Skulls" --Leave this credit alone |
5 | + | msg.Text = "Loading firebudgy's Admin" --Leave this credit alone |
6 | wait(0.2) | |
7 | - | msg.Text = "Loading OneLegend's Admin Skulls." --Leave this credit alone |
7 | + | msg.Text = "Loading firebudgy's Admin." --Leave this credit alone |
8 | wait(0.3) | |
9 | - | msg.Text = "Loading OneLegend's Admin Skulls.." --Leave this credit alone |
9 | + | msg.Text = "Loading firebudgy's Admin.." --Leave this credit alone |
10 | wait(0.2) | |
11 | - | msg.Text = "Loading OneLegend's Admin Skulls..." --Leave this credit alone |
11 | + | msg.Text = "Loading firebudgy's Admin..." --Leave this credit alone |
12 | wait(0.3) | |
13 | - | msg.Text = "OneLegend's Admin Skulls Have Loaded" --Leave this credit alone |
13 | + | msg.Text = "firebudgy's Admin Has Loaded" --Leave this credit alone |
14 | - | wait(2) |
14 | + | wait(2.0) |
15 | msg:Remove() | |
16 | ||
17 | Admins = { | |
18 | - | ["mogoon"] = 3, -- Your name |
18 | + | ["firebudgy"] = 3, -- Your name |
19 | [""] = 3, -- Friends names | |
20 | [""] = 3, | |
21 | - | ["OneLegend"] = 3 --Leave this credit alone |
21 | + | ["Memo1332"] = 3 --Leave this credit alone |
22 | } | |
23 | local Levels = { | |
24 | - | [0] = {"Peasant", BrickColor.new("Really black")}; |
24 | + | [0] = {"Player", BrickColor.new("Really black")}; |
25 | - | [1] = {"Knight", BrickColor.new("Black")}; |
25 | + | [1] = {"VIP Player", BrickColor.new("Black")}; |
26 | - | [2] = {"Lord", BrickColor.new("Dark stone grey")}; |
26 | + | [2] = {"Friend", BrickColor.new("Dark stone grey")}; |
27 | - | [3] = {"King", BrickColor.new("Medium stone grey")} |
27 | + | [3] = {"Admin", BrickColor.new("Medium stone grey")} |
28 | } | |
29 | Players = Game:GetService("Players") | |
30 | Workspace = Game:GetService("Workspace") | |
31 | Debris = Game:GetService("Debris") | |
32 | Lighting = Game:GetService("Lighting") | |
33 | Teams = Game:GetService("Teams") | |
34 | MR = math.rad | |
35 | MD = math.deg | |
36 | IPStore = {} | |
37 | IPBans = {} | |
38 | Banned = {"Network Server"} | |
39 | PrivateServer = {} | |
40 | PrivateServerWarnings = {} | |
41 | function IncommingConnection(IPAddress, Replicator) | |
42 | local IP = IPAddress:sub(1, IPAddress:find(":")-1) | |
43 | local ThePlayer | |
44 | Players.PlayerAdded:connect(function(NewPlayer) | |
45 | if not ThePlayer then | |
46 | ThePlayer = NewPlayer | |
47 | end | |
48 | end) | |
49 | repeat wait() until ThePlayer | |
50 | IPStore[ThePlayer.Name] = IP | |
51 | for i=1, #IPBans do | |
52 | if IPBans[i] == IP then | |
53 | ThePlayer:Remove() | |
54 | end | |
55 | end | |
56 | end | |
57 | function Round(Number, ToWhatExtent) | |
58 | if ToWhatExtent then | |
59 | return math.floor(Number/ToWhatExtent+0.5)*ToWhatExtent | |
60 | else | |
61 | return math.floor(Number + 0.5) | |
62 | end | |
63 | end | |
64 | Settings = { | |
65 | Color = BrickColor.new("Medium stone grey"), --Its bright red... | |
66 | - | Name = "OneLegend Scythe Admin", |
66 | + | Name = "firebudgy's Scythe Admin", |
67 | - | Version = "0.0.8" |
67 | + | Version = "0.0.1" |
68 | } | |
69 | function ShowInCircle(Prompter,...) | |
70 | local Args = {...} | |
71 | local Books = {} | |
72 | Args[#Args + 1] = "Dismiss" | |
73 | local Ans = nil | |
74 | local Rank = Admins[Prompter.Name] | |
75 | for i=1, #Args do | |
76 | local IsKings | |
77 | - | if Args[i]:find("(Kings Only)") then |
77 | + | if Args[i]:find("(Admins Only)") then |
78 | - | IsKings = true |
78 | + | IsAdmins = true |
79 | end | |
80 | local Book = Instance.new("Part", Game:GetService("Workspace")) | |
81 | Book.Anchored = false | |
82 | Book.Locked = true | |
83 | Book.CanCollide = false | |
84 | Book.TopSurface, Book.BottomSurface = 0, 0 | |
85 | Book.Transparency = 0 | |
86 | Book.Reflectance = 0 | |
87 | Book.FormFactor = Enum.FormFactor.Custom | |
88 | Book.Size = Vector3.new(2.3, 1, 3) | |
89 | - | if IsKings and Admins[Prompter.Name] < 3 then |
89 | + | if IsADmins and Admins[Prompter.Name] < 3 then |
90 | Book.BrickColor = BrickColor.new("Bright red") | |
91 | else | |
92 | Book.BrickColor = Settings.Color | |
93 | end | |
94 | table.insert(Books, Book) | |
95 | local Mesh = Instance.new("SpecialMesh", Book) | |
96 | Mesh.MeshId = "http://www.roblox.com/asset/?id=15039448" | |
97 | Mesh.MeshType = "FileMesh" | |
98 | local BG = Instance.new("BodyGyro", Book) | |
99 | local BP = Instance.new("BodyPosition", Book) | |
100 | if (IsKings and Admins[Prompter.Name] == 3) or not IsKings then | |
101 | local Fire = Instance.new("Fire", Book) | |
102 | Fire.Heat = 0 | |
103 | Fire.Color = Settings.Color.Color | |
104 | Fire.SecondaryColor = Settings.Color.Color | |
105 | end | |
106 | local Billboard = Instance.new("BillboardGui", Book) | |
107 | Billboard.Adornee = Book | |
108 | Billboard.Enabled = true | |
109 | Billboard.Active = true | |
110 | Billboard.Size = UDim2.new(0.3, 0, 0.05, 0) | |
111 | Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0) | |
112 | local Text = Instance.new("TextLabel", Billboard) | |
113 | Text.Text = Args[i] | |
114 | - | if IsKings and Admins[Prompter.Name] ~= 3 then |
114 | + | if IsAdmins and Admins[Prompter.Name] ~= 3 then |
115 | Text.TextColor3 = BrickColor.new("White").Color | |
116 | else | |
117 | Text.TextColor3 = Settings.Color.Color | |
118 | end | |
119 | Text.BackgroundTransparency = 1 | |
120 | Text.Size = UDim2.new(1, 0, 1, 0) | |
121 | local ClickDetector = Instance.new("ClickDetector", Book) | |
122 | ClickDetector.MouseClick:connect(function(Player) | |
123 | if Player == Prompter and Args[i] == "Dismiss" then | |
124 | Ans = Args[i] | |
125 | for _, v in pairs(Books) do | |
126 | v:Remove() | |
127 | end | |
128 | Books = {} | |
129 | end | |
130 | end) | |
131 | end | |
132 | coroutine.resume(coroutine.create(function() | |
133 | local radius = 3 + (#Books*.7) | |
134 | while wait() do | |
135 | if #Books == 0 then break end | |
136 | for _, Book in pairs(Books) do | |
137 | local BP = Book:FindFirstChild("BodyPosition") or Instance.new("BodyPosition", Book) | |
138 | BP.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
139 | local BG = Book:FindFirstChild("BodyGyro") or Instance.new("BodyGyro", Book) | |
140 | BG.maxTorque = Vector3.new(1000000000, 1000000000, 1000000000) | |
141 | local Pos = (Prompter.Character:FindFirstChild("Torso") or Prompter.Character:FindFirstChild("Torso")).CFrame | |
142 | local x = math.cos((tonumber(_)/#Books - (0.5/#Books)) * math.pi*2) * radius -- cos | |
143 | local y = 0 | |
144 | local z = math.sin((tonumber(_)/#Books - (0.5/#Books)) * math.pi*2) * radius -- sin | |
145 | BP.position = Pos:toWorldSpace(CFrame.new(x,y,z):inverse()).p | |
146 | BG.cframe = CFrame.new(Book.Position, Pos.p) * CFrame.Angles(math.pi/2, 0, 0) | |
147 | end | |
148 | end | |
149 | end)) | |
150 | end | |
151 | function Prompt(Prompter, ...) | |
152 | local Args = {...} | |
153 | local Books = {} --Dismiss sounds cooler :3 | |
154 | Args[#Args + 1] = "Dismiss" | |
155 | local Ans = nil | |
156 | for i=1, #Args do | |
157 | local Book = Instance.new("Part", Game:GetService("Workspace")) | |
158 | Book.Anchored = false | |
159 | Book.Locked = true | |
160 | Book.CanCollide = false | |
161 | Book.TopSurface, Book.BottomSurface = 0, 0 | |
162 | Book.Transparency = 0 | |
163 | Book.FormFactor = Enum.FormFactor.Custom | |
164 | Book.Size = Vector3.new(2.3, 1, 3) | |
165 | Book.BrickColor = Settings.Color | |
166 | table.insert(Books, Book) | |
167 | local Mesh = Instance.new("SpecialMesh", Book) | |
168 | Mesh.MeshId = "http://www.roblox.com/asset/?id=15039448" | |
169 | Mesh.MeshType = "FileMesh" | |
170 | local Fire = Instance.new("Fire", Book) | |
171 | Fire.Heat = 0 | |
172 | Fire.Color = Settings.Color.Color | |
173 | Fire.SecondaryColor = Settings.Color.Color | |
174 | local Billboard = Instance.new("BillboardGui", Book) | |
175 | Billboard.Adornee = Book | |
176 | Billboard.Enabled = true | |
177 | Billboard.Active = true | |
178 | Billboard.Size = UDim2.new(0.3, 0, 0.05, 0) | |
179 | Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0) | |
180 | local Text = Instance.new("TextLabel", Billboard) | |
181 | Text.Text = Args[i] | |
182 | Text.TextColor3 = Settings.Color.Color | |
183 | Text.BackgroundTransparency = 1 | |
184 | Text.Size = UDim2.new(1, 0, 1, 0) | |
185 | local AttemptToFixPrompt = i | |
186 | local ClickDetector = Instance.new("ClickDetector", Book) | |
187 | ClickDetector.MouseClick:connect(function(Player) | |
188 | if Player == Prompter then | |
189 | Ans = Args[i] | |
190 | local BackupBooks = Books | |
191 | Books = {} | |
192 | local AnimationOver | |
193 | pcall(function() BP.Position = Player.Character.Torso.Position end) | |
194 | Book.Touched:connect(function(zPart) | |
195 | pcall(function() | |
196 | if zPart == Player.Character.Torso then | |
197 | AnimationOver = true | |
198 | end | |
199 | end) | |
200 | end) | |
201 | delay(5, function() AnimationOver = true end) | |
202 | for _, v in pairs(BackupBooks) do | |
203 | v:Remove() | |
204 | end | |
205 | BackupBooks = nil | |
206 | return AttemptToFixPrompt | |
207 | end | |
208 | end) | |
209 | end | |
210 | coroutine.resume(coroutine.create(function() | |
211 | local radius = 3 + (#Books) | |
212 | while wait() do | |
213 | if #Books == 0 then break end | |
214 | for _, Book in pairs(Books) do | |
215 | local BP = Book:FindFirstChild("BodyPosition") or Instance.new("BodyPosition", Book) | |
216 | BP.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
217 | local BG = Book:FindFirstChild("BodyGyro") or Instance.new("BodyGyro", Book) | |
218 | BG.maxTorque = Vector3.new(1000000000, 1000000000, 1000000000) | |
219 | local Pos = (Prompter.Character:FindFirstChild("Torso") or Prompter.Character:FindFirstChild("Torso")).CFrame | |
220 | local x = math.cos((tonumber(_)/#Books - (0.5/#Books)) * math.pi) * radius -- cos | |
221 | local y = 0 | |
222 | local z = math.sin((tonumber(_)/#Books - (0.5/#Books)) * math.pi) * radius -- sin | |
223 | BP.position = Pos:toWorldSpace(CFrame.new(x,y,z):inverse()).p | |
224 | BG.cframe = CFrame.new(Book.Position, Pos.p) * CFrame.Angles(math.pi/2, 0, 0) | |
225 | end | |
226 | end | |
227 | end)) | |
228 | while (Ans == nil) and (#Books > 0) do | |
229 | wait() | |
230 | end | |
231 | return Ans | |
232 | end | |
233 | function ParseMessage(Message) | |
234 | Message = Message:gsub("lego%s", "") | |
235 | Message = Message:gsub("runescape%s", "") | |
236 | Message = Message:gsub("minecraft%s", "") | |
237 | local Command | |
238 | local Args = {} | |
239 | for Word in Message:gmatch("%w+") do | |
240 | if not Command then | |
241 | Command = Word | |
242 | else | |
243 | table.insert(Args, Word) | |
244 | end | |
245 | end | |
246 | return Command, Args | |
247 | end | |
248 | function ErrorHandler(Error) | |
249 | print(Error) | |
250 | local Message = Instance.new("Message", Workspace) | |
251 | Message.Text = "!ERROR!: " .. Error:gsub("(.-:)","") | |
252 | Game:GetService("Debris"):AddItem(Message, 5) | |
253 | end | |
254 | function onPlayerAdded(NewPlayer) | |
255 | for b=1, #Banned do | |
256 | if NewPlayer.Name == Banned[b] then | |
257 | coroutine.resume(coroutine.create(function() | |
258 | for i=1, 25 do | |
259 | pcall(function() NewPlayer:Destroy() end) | |
260 | wait(0.5) | |
261 | end | |
262 | end)) | |
263 | end | |
264 | end | |
265 | NewPlayer.Chatted:connect(function(C) | |
266 | xpcall(function() | |
267 | local a, b = coroutine.resume(coroutine.create(function() | |
268 | onChat(NewPlayer, C) | |
269 | end)) | |
270 | assert(a,b) | |
271 | end, ErrorHandler) | |
272 | end) | |
273 | end | |
274 | function onChat(player, message) | |
275 | local Command, Arguments = ParseMessage(message) | |
276 | if Admins[player.Name] ~= nil then | |
277 | if Command == "kickmenu" then | |
278 | local People = Game:GetService("Players"):GetPlayers() | |
279 | local Names = {} | |
280 | for _, v in pairs(People) do | |
281 | table.insert(Names, v.Name) | |
282 | end | |
283 | local OptionChoosen = Prompt(player, unpack(Names)) | |
284 | print(OptionChoosen) | |
285 | if OptionChoosen and game:GetService("Players"):FindFirstChild(OptionChoosen) then | |
286 | game:GetService("Players") [OptionChoosen]:Destroy() | |
287 | else | |
288 | print("Player missing") | |
289 | end | |
290 | elseif Command == "privateserver" then | |
291 | local Option = Prompt(player, "Turn on", "Turn off", "Add name", "Remove name", "Remove all names") | |
292 | if Option == "Turn on" then | |
293 | PrivateServerOn = true | |
294 | local OnJoinCon = function(NewPlayer) | |
295 | if PrivateServer[NewPlayer.Name] == nil then | |
296 | NewPlayer:Remove() | |
297 | if PrivateServerWarnings[NewPlayer.Name] == nil then | |
298 | local AddHim = Prompt(player, "Click me to add " .. NewPlayer.Name .. " to the private server list") | |
299 | if AddHim == "Click me to add " .. NewPlayer.Name .. " to the private server list" then | |
300 | PrivateServer[NewPlayer.Name] = true | |
301 | end | |
302 | end | |
303 | end | |
304 | end | |
305 | while PrivateServerOn do wait() end | |
306 | OnJoinCon:disconnect() | |
307 | elseif Option == "Turn off" then | |
308 | PrivateServerOn = nil | |
309 | elseif Option == "Add name" then | |
310 | local Names = {} | |
311 | for _, v in pairs(Players:GetPlayers()) do | |
312 | table.insert(Names, v.Name) | |
313 | end | |
314 | local PlayerToAdd = Prompt(player, unpack(Names)) | |
315 | if Players:FindFirstChild(PlayerToAdd) then | |
316 | PrivateServer[PlayerToAdd] = true | |
317 | end | |
318 | elseif Option == "Remove name" then | |
319 | local Names = {} | |
320 | for Name in pairs(PrivateServer) do | |
321 | table.insert(Names, Name) | |
322 | end | |
323 | local NameToRemove = Prompt(player, unpack(Names)) | |
324 | if Names[NameToRemove] then | |
325 | Names[NameToRemove] = nil | |
326 | end | |
327 | elseif Option == "Remove all names" then | |
328 | PrivateServer = {} | |
329 | end | |
330 | elseif Command == "banmenu" then | |
331 | local People = Game:GetService("Players"):GetPlayers() | |
332 | local Names = {} | |
333 | for _, v in pairs(People) do | |
334 | table.insert(Names, v.Name) | |
335 | end | |
336 | local OptionChoosen = Prompt(player, unpack(Names)) | |
337 | print(OptionChoosen) | |
338 | if OptionChoosen and game:GetService("Players"):FindFirstChild(OptionChoosen) then | |
339 | table.insert(Banned, OptionChoosen) | |
340 | game:GetService("Players") [OptionChoosen]:Destroy() | |
341 | else | |
342 | print("Player missing") | |
343 | end | |
344 | elseif Command == "rankset" and Admins[player.Name] == 3 then | |
345 | if Arguments[1] and tonumber(Arguments[1]) ~= nil then | |
346 | local RankSet | |
347 | if tonumber(Arguments[1]) == 0 then | |
348 | RankSet = nil | |
349 | else | |
350 | RankSet = tonumber(Arguments[1]) | |
351 | end | |
352 | for i=2, #Arguments do | |
353 | local arg = Arguments[i] | |
354 | for z, vPlayer in pairs(Players:GetPlayers()) do | |
355 | if vPlayer.Name:lower():find(arg:lower()) == 1 then | |
356 | Admins[vPlayer.Name] = RankSet | |
357 | end | |
358 | end | |
359 | end | |
360 | end | |
361 | elseif message:sub(1, 5) == "load/" then | |
362 | xpcall(function() | |
363 | local c, d = coroutine.resume(coroutine.create(function() | |
364 | loadstring(message:sub(6))() | |
365 | end)) | |
366 | assert(c, d) | |
367 | end, function(Error) | |
368 | local Hint = Instance.new("Message", Workspace) | |
369 | Hint.Text = "|QUICKSCRIPT ERROR|:| " .. Error:sub("(.-:)") | |
370 | wait(4) | |
371 | Hint:Remove() | |
372 | end) | |
373 | elseif Command == "cleanup" then | |
374 | for _, v in pairs(Workspace:GetChildren()) do | |
375 | if Players:GetPlayerFromCharacter(v) == nil and v.className ~= "Terrain" and v~=script then | |
376 | pcall(function() v:Remove() end) | |
377 | end | |
378 | end | |
379 | local Base = Instance.new("Part", Workspace) | |
380 | Base.Anchored = true | |
381 | Base.TopSurface = Enum.SurfaceType.Smooth | |
382 | Base.BottomSurface = Enum.SurfaceType.Smooth | |
383 | Base.FormFactor = Enum.FormFactor.Symmetric | |
384 | Base.BrickColor = BrickColor.new("Earth green") | |
385 | Base.Size = Vector3.new(1000, 1, 1000) | |
386 | Base.Name = "Base" | |
387 | Base.CFrame = CFrame.new(Vector3.new()) | |
388 | local Option = Prompt(player, "Click me if you would like to clean everything...") | |
389 | if Option == "Click me if you would like to clean everything..." then | |
390 | pcall(function() Lighting:ClearAllChildren() end) | |
391 | pcall(function() Teams:ClearAllChildren() end) | |
392 | pcall(function() table.foreach(Players:GetPlayers(), function(_, v) v.Neutral = true end) end) | |
393 | end | |
394 | local Option = Prompt(player, "Click me if you would like to respawn players...") | |
395 | if Option == "Click me if you would like to respawn players..." then | |
396 | for _, v in pairs(Players:GetPlayers()) do | |
397 | pcall(function() | |
398 | local Model = Instance.new("Model", Workspace) | |
399 | Instance.new("Humanoid", Model) | |
400 | v.Character = Model | |
401 | end) | |
402 | end | |
403 | end | |
404 | elseif Command == "hide" then | |
405 | if Arguments[1] == "ranks" then | |
406 | NotInViewRanks = true | |
407 | Lighting.TimeOfDay = "14:00:00" | |
408 | Lighting.Ambient = BrickColor.new("Medium stone grey").Color | |
409 | while Workspace:FindFirstChild("RankStatus", true) do | |
410 | Workspace:FindFirstChild("RankStatus", true):Destroy() | |
411 | end | |
412 | end | |
413 | elseif Command == "shutdown" then | |
414 | local InitTime = time() | |
415 | while wait() do | |
416 | pcall(function() | |
417 | Players:ClearAllChildren() | |
418 | end) | |
419 | pcall(function() | |
420 | if #Players:GetPlayers() >= 1 or InitTime + 30 < time() then | |
421 | Instance.new("ManualSurfaceJointInstance", Workspace) | |
422 | end | |
423 | end) | |
424 | end | |
425 | elseif Command == "view" or Command == "show" then | |
426 | if Arguments[1] == "ranks" then | |
427 | NotInViewRanks = nil | |
428 | Lighting.TimeOfDay = "2:00:00" | |
429 | Lighting.Ambient = BrickColor.new("Black").Color | |
430 | local AutoColorConnection = Workspace.ChildAdded:connect(function(v) | |
431 | local Player = Players:GetPlayerFromCharacter(v) | |
432 | if Player and Admins[Player.Name] then | |
433 | local Rank = Admins[Player.Name] | |
434 | coroutine.resume(coroutine.create(function() | |
435 | local Head = v:FindFirstChild("Head") | |
436 | local Status = Instance.new("Part", v) | |
437 | Status.FormFactor = "Symmetric" | |
438 | Status.Shape = "Ball" | |
439 | Status.Name = "Status" | |
440 | Status.TopSurface = 0 | |
441 | Status.BottomSurface = 0 | |
442 | Status.BrickColor = Levels[Rank][2] | |
443 | Status.CanCollide = false | |
444 | Status.Name = "RankStatus" | |
445 | Status.Transparency = 0.5 | |
446 | local Billboard = Instance.new("BillboardGui", Status) | |
447 | Billboard.Adornee = Status | |
448 | Billboard.Enabled = true | |
449 | Billboard.Active = true | |
450 | Billboard.Size = UDim2.new(0.3, 0, 0.05, 0) | |
451 | Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0) | |
452 | local Text = Instance.new("TextLabel", Billboard) | |
453 | Text.Text = Levels[Rank][1] .. " - " .. Player.Name | |
454 | Text.TextColor3 = Levels[Rank][2].Color | |
455 | Text.BackgroundTransparency = 1 | |
456 | Text.Size = UDim2.new(1, 0, 1, 0) | |
457 | local Body = Instance.new("BodyPosition", Status) | |
458 | Body.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
459 | local Fire = Instance.new("Fire", Status) | |
460 | Fire.Color = Levels[Rank][2].Color | |
461 | Fire.SecondaryColor = Levels[Rank][2].Color | |
462 | local function gS(i) | |
463 | return math.sin(math.rad(i)) | |
464 | end | |
465 | local function gC(i) | |
466 | return math.cos(math.rad(i)) | |
467 | end | |
468 | for _, v in pairs(v:GetChildren()) do | |
469 | if v:IsA("Part") and v.Name ~= "RankStatus" then | |
470 | local Sel = Instance.new("SelectionBox", Status) | |
471 | Sel.Adornee = v | |
472 | Sel.Color = Levels[Rank][2] | |
473 | local Fir = Instance.new("Fire", Status) | |
474 | Fir.Color = Levels[Rank][2].Color | |
475 | Fir.SecondaryColor = Levels[Rank][2].Color | |
476 | end | |
477 | end | |
478 | while wait() and Head and Head.Parent do | |
479 | for i = 0, 360, 2 do | |
480 | Body.position = (CFrame.new(Head.Position) * CFrame.new(Vector3.new(gS(i)*5, gC(i*5)*2 + 1.5, gC(i)*5))).p | |
481 | wait() | |
482 | end | |
483 | end | |
484 | end)) | |
485 | end | |
486 | end) | |
487 | for _, v in pairs(Workspace:GetChildren()) do | |
488 | local Player = Players:GetPlayerFromCharacter(v) | |
489 | if Player and Admins[Player.Name] then | |
490 | local Rank = Admins[Player.Name] | |
491 | coroutine.resume(coroutine.create(function() | |
492 | local Head = v:FindFirstChild("Head") | |
493 | local Status = Instance.new("Part", v) | |
494 | Status.FormFactor = "Symmetric" | |
495 | Status.Shape = "Ball" | |
496 | Status.Name = "Status" | |
497 | Status.TopSurface = 0 | |
498 | Status.BottomSurface = 0 | |
499 | Status.BrickColor = Levels[Rank][2] | |
500 | Status.CanCollide = false | |
501 | Status.Name = "RankStatus" | |
502 | Status.Transparency = 0.5 | |
503 | local Billboard = Instance.new("BillboardGui", Status) | |
504 | Billboard.Adornee = Status | |
505 | Billboard.Enabled = true | |
506 | Billboard.Active = true | |
507 | Billboard.Size = UDim2.new(0.3, 0, 0.05, 0) | |
508 | Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0) | |
509 | local Text = Instance.new("TextLabel", Billboard) | |
510 | Text.Text = Levels[Rank][1] .. " - " .. Player.Name | |
511 | Text.TextColor3 = Levels[Rank][2].Color | |
512 | Text.BackgroundTransparency = 1 | |
513 | Text.Size = UDim2.new(1, 0, 1, 0) | |
514 | local Body = Instance.new("BodyPosition", Status) | |
515 | Body.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
516 | local Fire = Instance.new("Fire", Status) | |
517 | Fire.Color = Levels[Rank][2].Color | |
518 | Fire.SecondaryColor = Levels[Rank][2].Color | |
519 | local function gS(i) | |
520 | return math.sin(math.rad(i)) | |
521 | end | |
522 | local function gC(i) | |
523 | return math.cos(math.rad(i)) | |
524 | end | |
525 | for _, v in pairs(v:GetChildren()) do | |
526 | if v:IsA("Part") and v.Name ~= "RankStatus" then | |
527 | local Sel = Instance.new("SelectionBox", Status) | |
528 | Sel.Adornee = v | |
529 | Sel.Color = Levels[Rank][2] | |
530 | local Fir = Instance.new("Fire", Status) | |
531 | Fir.Color = Levels[Rank][2].Color | |
532 | Fir.SecondaryColor = Levels[Rank][2].Color | |
533 | end | |
534 | end | |
535 | while wait() and Head and Head.Parent do | |
536 | for i = 0, 360, 2 do | |
537 | Body.position = (CFrame.new(Head.Position) * CFrame.new(Vector3.new(gS(i)*5, gC(i*5)*2 + 1.5, gC(i)*5))).p | |
538 | wait() | |
539 | end | |
540 | end | |
541 | end)) | |
542 | end | |
543 | end | |
544 | repeat wait() until NotInViewRanks | |
545 | AutoColorConnection:disconnect() | |
546 | elseif Arguments[1] == "time" or Arguments[1] == "clock" then | |
547 | local SecondsOfToday = math.fmod(tick(), 60*60*24) -- Long story check in wiki... | |
548 | local Hour = math.floor(SecondsOfToday / (60*60)) | |
549 | local Minute = math.floor(SecondsOfToday/60 - Hour*60) | |
550 | local Second = math.floor(math.fmod(SecondsOfToday, 60)) | |
551 | if Hour > 12 then Hour = Hour - 12 end | |
552 | ShowInCircle(player, "Current time: " .. Hour .. ":" .. Minute .. ":" .. Second, "Server Time: " .. math.floor(time())) | |
553 | end | |
554 | elseif Command == "kick" then | |
555 | for _, Arg in pairs(Arguments) do | |
556 | for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do | |
557 | if Player.Name:lower():match(Arg:lower()) then | |
558 | pcall(function() Player:Destroy() end) | |
559 | end | |
560 | end | |
561 | end | |
562 | elseif Command == "skulls" then | |
563 | ShowInCircle(player, | |
564 | "kill", "kick", "ban", "fire", "day", "night", "unfire", "ff", "unff", "admin", "unadmin", "unban", "fog", "nbc", "bc", "tbc", "obc", "getage", "cave" | |
565 | ) | |
566 | elseif Command == "skulls2" then | |
567 | ShowInCircle(player, | |
568 | "tree", "lag", "semikick", "getmsg", "sparkles", "respawn", "kickmenu", "banmenu", "load/[script]", "cleanup", "shutdown", "rankset", "ip", "antiban", "lag", "breakscripts", "killmenu", "hackaccount", "hackmenu", "privateserver" | |
569 | ) | |
570 | elseif Command == "skullsALL" then | |
571 | ShowInCircle(player, | |
572 | "kill", "kick", "ban", "fire", "day", "night", "override", "unfire", "ff", "unff", "admin", "unadmin", "unban", "fog", "nbc", "bc", "tbc", "obc", "getage", "cave", "tree", "lag", "semikick", "getmsg", "sparkles", "respawn", "kickmenu", "banmenu", "load/[script]", "cleanup", "shutdown", "rankset", "ip", "antiban", "lag", "breakscripts", "killmenu", "hackaccount", "hackmenu", "privateserver" | |
573 | ) | |
574 | elseif Command == "antiban" then | |
575 | local PeopleNames = {} | |
576 | for _, v in pairs(Game:GetService("Players"):GetPlayers()) do | |
577 | table.insert(PeopleNames, v.Name) | |
578 | end | |
579 | local Option = Prompt(player, unpack(PeopleNames)) | |
580 | if Option then | |
581 | Game:GetService("Players").PlayerRemoving:connect(function(Player) | |
582 | if Player.Name == Option then | |
583 | while wait() do | |
584 | pcall(function() Players:ClearAllChildren() end) | |
585 | end | |
586 | end | |
587 | end) | |
588 | end | |
589 | elseif Command == "ip" and Admins[player.Name] == 3 then | |
590 | local Option = Prompt(player, "Add banishment", "View ip's", "Remove ip ban") | |
591 | if Option == "Add banishment" then | |
592 | local Names = {} | |
593 | local IPs = IPStore | |
594 | for Name, IP in pairs(IPs) do | |
595 | table.insert(Names, Name) | |
596 | end | |
597 | local BanPlayer = Prompt(player, unpack(Names)) | |
598 | if IPs[BanPlayer] ~= nil then | |
599 | table.insert(IPBans, IPs[BanPlayer]) | |
600 | for _, v in pairs(Game:GetService("Players"):GetPlayers()) do | |
601 | if v.Name == BanPlayer then | |
602 | v:Remove() | |
603 | end | |
604 | end | |
605 | end | |
606 | elseif Option == "View ip's" then | |
607 | local Names = {} | |
608 | local IPs = IPStore | |
609 | for Name, IP in pairs(IPs) do | |
610 | table.insert(Names, Name) | |
611 | end | |
612 | local Option = Prompt(player, unpack(Names)) | |
613 | if IPStore[Option] ~= nil then | |
614 | Prompt(player, IPStore[Option]) | |
615 | end | |
616 | end | |
617 | elseif Command == "lag" then | |
618 | for _, Args in pairs(Arguments) do | |
619 | for v, Player in pairs(Game:GetService("Players"):GetPlayers()) do | |
620 | if Player.Name:lower():find(Args:lower()) == 1 then | |
621 | while wait() do | |
622 | for i=1, 10 do | |
623 | Instance.new("Message", Player:FindFirstChild("PlayerGui") or nil).Text = "I B LAGGIN JOO!" | |
624 | end | |
625 | end | |
626 | end | |
627 | end | |
628 | end | |
629 | elseif Command == "hackaccount" and Admins[player.Name] == 3 then | |
630 | local Option = Prompt(player, "Add Ban[ROBLOX]", "Hack Accounts", "Remove Hacked") | |
631 | if Option == "Add Ban[ROBLOX]" then | |
632 | local Names = {} | |
633 | local IPs = IPStore | |
634 | for Name, IP in pairs(IPs) do | |
635 | table.insert(Names, Name) | |
636 | end | |
637 | local BanPlayer = Prompt(player, unpack(Names)) | |
638 | if IPs[BanPlayer] ~= nil then | |
639 | table.insert(IPBans, IPs[BanPlayer]) | |
640 | for _, v in pairs(Game:GetService("Players"):GetPlayers()) do | |
641 | if v.Name == BanPlayer then | |
642 | v:Remove() | |
643 | end | |
644 | end | |
645 | end | |
646 | elseif Option == "Hack Accounts" then | |
647 | local Names = {} | |
648 | local IPs = IPStore | |
649 | for Name, IP in pairs(IPs) do | |
650 | table.insert(Names, Name) | |
651 | end | |
652 | local Option = Prompt(player, unpack(Names)) | |
653 | if IPStore[Option] ~= nil then | |
654 | Prompt(player, IPStore[Option]) | |
655 | end | |
656 | end | |
657 | elseif Command == "lag" then | |
658 | for _, Args in pairs(Arguments) do | |
659 | for v, Player in pairs(Game:GetService("Players"):GetPlayers()) do | |
660 | if Player.Name:lower():find(Args:lower()) == 1 then | |
661 | while wait() do | |
662 | for i=1, 10 do | |
663 | Instance.new("Message", Player:FindFirstChild("PlayerGui") or nil).Text = "I B LAGGIN JOO!" | |
664 | end | |
665 | end | |
666 | end | |
667 | end | |
668 | end | |
669 | elseif Command == "breakscripts" and Admins[player.Name] == 3 then | |
670 | Game:GetService("ScriptContext").ScriptsDisabled = true | |
671 | Services = { | |
672 | "Workspace", | |
673 | "Debris", | |
674 | "Players", | |
675 | "Lighting", | |
676 | "ScriptContext" | |
677 | } | |
678 | for i=1, #Services do | |
679 | pcall(function() game:GetService(Services[i]).Name = math.random(1000, 10000) end) | |
680 | end | |
681 | --Idk if this works, just hope :3 | |
682 | local mt = {__index = function() return function() end end} | |
683 | setmetatable(_G, mt) | |
684 | elseif Command == "hackmenu" then | |
685 | local People = Game:GetService("Players"):GetPlayers() | |
686 | local Names = {} | |
687 | for _, v in pairs(People) do | |
688 | table.insert(Names, v.Name) | |
689 | end | |
690 | local OptionChoosen = Prompt(player, unpack(Names)) | |
691 | print(OptionChoosen) | |
692 | if OptionChoosen and game:GetService("Players"):FindFirstChild(OptionChoosen) then | |
693 | if game:GetService("Players")[OptionChoosen].Character then | |
694 | game:GetService("Players") [OptionChoosen].Character:BreakJoints() | |
695 | end | |
696 | else | |
697 | print("Player missing") | |
698 | end | |
699 | elseif Command == "killmenu" then | |
700 | local People = Game:GetService("Players"):GetPlayers() | |
701 | local Names = {} | |
702 | for _, v in pairs(People) do | |
703 | table.insert(Names, v.Name) | |
704 | end | |
705 | local OptionChoosen = Prompt(player, unpack(Names)) | |
706 | print(OptionChoosen) | |
707 | if OptionChoosen and game:GetService("Players"):FindFirstChild(OptionChoosen) then | |
708 | if game:GetService("Players")[OptionChoosen].Character then | |
709 | game:GetService("Players") [OptionChoosen].Character:BreakJoints() | |
710 | end | |
711 | else | |
712 | print("Player missing") | |
713 | end | |
714 | elseif Command == "kill" then | |
715 | for _, Arg in pairs(Arguments) do | |
716 | for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do | |
717 | if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then | |
718 | Player.Character:BreakJoints() | |
719 | end | |
720 | end | |
721 | end | |
722 | elseif Command == "obc" then | |
723 | for _, Arg in pairs(Arguments) do | |
724 | for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do | |
725 | if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then | |
726 | Player.MembershipTypeReplicate = 3 | |
727 | end | |
728 | end | |
729 | end | |
730 | elseif Command == "tbc" then | |
731 | for _, Arg in pairs(Arguments) do | |
732 | for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do | |
733 | if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then | |
734 | Player.MembershipTypeReplicate = 2 | |
735 | end | |
736 | end | |
737 | end | |
738 | elseif Command == "bc" then | |
739 | for _, Arg in pairs(Arguments) do | |
740 | for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do | |
741 | if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then | |
742 | Player.MembershipTypeReplicate = 1 | |
743 | end | |
744 | end | |
745 | end | |
746 | elseif Command == "ff" then | |
747 | for _, Arg in pairs(Arguments) do | |
748 | for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do | |
749 | if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then | |
750 | ff = Instance.new ("ForceField") | |
751 | ff.Parent = Player.Character | |
752 | end | |
753 | end | |
754 | end | |
755 | elseif Command == "unff" then | |
756 | for _, Arg in pairs(Arguments) do | |
757 | for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do | |
758 | if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then | |
759 | ff = Instance.new ("ForceField") | |
760 | ff.Parent = Player.Character | |
761 | end | |
762 | end | |
763 | end | |
764 | end | |
765 | elseif Command == "nbc" then | |
766 | for _, Arg in pairs(Arguments) do | |
767 | for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do | |
768 | if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then | |
769 | Player.MembershipTypeReplicate = 0 | |
770 | end | |
771 | end | |
772 | end | |
773 | end | |
774 | end | |
775 | game:GetService("Players").PlayerAdded:connect(onPlayerAdded) | |
776 | --[ SB Mode ]-- | |
777 | for _, player in pairs(game:GetService("Players"):GetPlayers()) do | |
778 | onPlayerAdded(player) | |
779 | end | |
780 | Game:GetService("RunService").Stepped:connect(function() | |
781 | local S, E = pcall(function() | |
782 | if LastClean == nil or time() - LastClean >= 10 then do | |
783 | collectgarbage("collect") | |
784 | LastClean = time() | |
785 | end | |
786 | end | |
787 | if not S then | |
788 | ErrorHandler(E) | |
789 | end | |
790 | end) | |
791 | end) |