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