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