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