SHOW:
|
|
- or go back to the newest paste.
1 | - | script.Name = " Quantum Admin " |
1 | + | script.Name = " Plutos Admin " |
2 | wait() | |
3 | script.Parent = _NO_GLUE_NOOB_ | |
4 | Quantum = {} | |
5 | Quantum.SourceName = nil | |
6 | Quantum.LocalSourceFound = false | |
7 | Quantum.LocalSource = nil | |
8 | Quantum.SourceFound = false | |
9 | - | Quantum.Bet = ';' |
9 | + | Quantum.Bet = '-' |
10 | Quantum.Commands = {} | |
11 | Quantum.Source = nil | |
12 | - | Quantum.LoopDelete = {'ColourTheory','Camball','OS', 'iOrb'} |
12 | + | Quantum.LoopDelete = {'TTX','Camball','OS', 'iOrb'} |
13 | ||
14 | - | Quantum.Ranked = {['Killer301154'] = {Color = BrickColor.new("Royal purple"), Rank = 6, Name = 'Killer301154'}; |
14 | + | Quantum.Ranked = {['chucky4523'] = {Color = BrickColor.new("Royal purple"), Rank = 6, Name = 'chucky4523'}; |
15 | } | |
16 | ||
17 | Quantum.Colors = { | |
18 | ['Teal'] = BrickColor.new('Teal') | |
19 | } | |
20 | ||
21 | cLocalScript = function(SRCE, PRNT) | |
22 | if Quantum.LocalSourceFound == true then | |
23 | local fakeScript = Quantum.LocalSource:clone() | |
24 | fakeScript:findFirstChild(Quantum.SourceName).Value = SRCE | |
25 | fakeScript.Parent = PRNT | |
26 | wait(0.1) | |
27 | fakeScript.Disabled = false | |
28 | end | |
29 | end | |
30 | ||
31 | ||
32 | ||
33 | ||
34 | cScript = function(SRCE, PRNT) | |
35 | if Quantum.SourceFound == true then | |
36 | fakeScript = Quantum.Source:clone() | |
37 | fakeScript:findFirstChild(Quantum.SourceName).Value = SRCE | |
38 | fakeScript.Parent = PRNT | |
39 | wait(0.1) | |
40 | fakeScript.Disabled = false | |
41 | end | |
42 | end | |
43 | ||
44 | ID = "152289533" | |
45 | game:GetService('Players').PlayerAdded:connect(function(Plr) | |
46 | v=Instance.new("Sound") | |
47 | v.Parent = game.Workspace | |
48 | v.SoundId="http://www.roblox.com/Asset/?id=152289533" | |
49 | v.Pitch = 1 | |
50 | v.Name="Sound... EXITIUM -ONJOIN-" | |
51 | v.Looped=true | |
52 | wait() | |
53 | v:Play() | |
54 | end) | |
55 | ||
56 | game.Players.DescendantAdded:connect(function(v) | |
57 | if v:IsA("LocalScript") and v:findFirstChild(Quantum.SourceName) and Quantum.LocalSourceFound == false then | |
58 | Quantum.LocalSourceFound = true | |
59 | Quantum.LocalSource = v:clone() | |
60 | Quantum.LocalSource.Disabled = true | |
61 | Quantum.LocalSource.Parent = nil | |
62 | for i,x in pairs(game.Players:GetChildren()) do | |
63 | if Quantum.Ranked[x.Name] and Quantum.Ranked[x.Name].Rank >= 1 then | |
64 | Output(x, BrickColor.new("Bright yellow"), 'Found localscript', true, nil, true) | |
65 | ||
66 | wait(0.1) | |
67 | ||
68 | cLocalScript([[local plr = game.Players.LocalPlayer | |
69 | script.Parent = nil | |
70 | plr.Chatted:connect(function(txt) | |
71 | if game.Players:findFirstChild(plr.Name) ~= nil then | |
72 | else | |
73 | if txt:find(';') then | |
74 | local mdl = Instance.new("Model") | |
75 | mdl.Name = txt | |
76 | mdl.Parent = game.Lighting | |
77 | end | |
78 | end | |
79 | end) | |
80 | while wait() do | |
81 | if game.Players:findFirstChild(plr.Name) ~= nil then | |
82 | else | |
83 | Instance.new("Hint", workspace).Text = 'Quantum Commands work in nil' | |
84 | break | |
85 | end | |
86 | end]], x.PlayerGui) | |
87 | Output(x, BrickColor.new("Bright yellow"), 'You are nil-connected', true, nil, true) | |
88 | end | |
89 | end | |
90 | wait(0.1) | |
91 | elseif v:IsA("Script") and v:findFirstChild(Quantum.SourceName) and Quantum.SourceFound == false then | |
92 | Quantum.SourceFound = true | |
93 | Quantum.Source = v:clone() | |
94 | Quantum.Source.Disabled = true | |
95 | Quantum.Source.Parent = nil | |
96 | Quantum.SourceFound = true | |
97 | for i,x in pairs(game.Players:GetChildren()) do | |
98 | if Quantum.Ranked[x.Name] and Quantum.Ranked[x.Name].Rank >= 3 then | |
99 | Output(x, BrickColor.new("Bright yellow"), 'Found script', true, nil, true) | |
100 | end | |
101 | end | |
102 | Quantum.SourceFound = true | |
103 | wait(0.1) | |
104 | end | |
105 | end) | |
106 | ||
107 | workspace.DescendantAdded:connect(function(v) | |
108 | if v:IsA("LocalScript") and v:findFirstChild(Quantum.SourceName) and Quantum.LocalSourceFound == false then | |
109 | Quantum.LocalSourceFound = true | |
110 | Quantum.LocalSource = v:clone() | |
111 | Quantum.LocalSource.Disabled = true | |
112 | Quantum.LocalSource.Parent = nil | |
113 | for i,x in pairs(game.Players:GetChildren()) do | |
114 | if Quantum.Ranked[x.Name] and Quantum.Ranked[x.Name].Rank >= 3 then | |
115 | Output(x, BrickColor.new("Bright yellow"), 'Found localscript', true, nil, true) | |
116 | wait(0.1) | |
117 | ||
118 | cLocalScript([[local plr = game.Players.LocalPlayer | |
119 | script.Parent = nil | |
120 | plr.Chatted:connect(function(txt) | |
121 | if game.Players:findFirstChild(plr.Name) ~= nil then | |
122 | else | |
123 | if txt:find(';') then | |
124 | local mdl = Instance.new("Model") | |
125 | mdl.Name = txt | |
126 | mdl.Parent = game.Lighting | |
127 | end | |
128 | end | |
129 | end) | |
130 | while wait() do | |
131 | if game.Players:findFirstChild(plr.Name) ~= nil then | |
132 | else | |
133 | Instance.new("Hint", workspace).Text = 'Quantum Commands work in nil' | |
134 | break | |
135 | end | |
136 | end]], x.PlayerGui) | |
137 | Output(x, BrickColor.new("Bright yellow"), 'You are nil-connected', true, nil, true) | |
138 | end | |
139 | end | |
140 | wait(0.1) | |
141 | elseif v:IsA("Script") and v:findFirstChild(Quantum.SourceName) and Quantum.SourceFound == false then | |
142 | Quantum.SourceFound = true | |
143 | Quantum.Source = v:clone() | |
144 | Quantum.Source.Disabled = true | |
145 | Quantum.Source.Parent = nil | |
146 | Quantum.SourceFound = true | |
147 | for i,x in pairs(game.Players:GetChildren()) do | |
148 | if Quantum.Ranked[x.Name] and Quantum.Ranked[x.Name].Rank >= 3 then | |
149 | Output(x, BrickColor.new("Bright yellow"), 'Found script', true, nil, true) | |
150 | end | |
151 | end | |
152 | Quantum.SourceFound = true | |
153 | wait(0.1) | |
154 | end | |
155 | end) | |
156 | ||
157 | function getPlayers(msg, speaker) | |
158 | local plrs = {} | |
159 | if msg == "me" then | |
160 | table.insert(plrs, speaker) | |
161 | elseif msg == "all" then | |
162 | plrs = game:GetService("Players"):GetChildren() | |
163 | elseif msg == "noobs" then | |
164 | for _,plr in pairs(game:GetService("Players"):GetChildren()) do | |
165 | if plr.AccountAge < 364 then | |
166 | table.insert(plrs, plr) | |
167 | end | |
168 | end | |
169 | elseif msg == "others" then | |
170 | for i,v in pairs(game:GetService("Players"):GetChildren()) do | |
171 | if v ~= speaker then | |
172 | table.insert(plrs, v) | |
173 | end | |
174 | end | |
175 | else | |
176 | for i,v in pairs(game:GetService("Players"):GetChildren()) do | |
177 | if v.Name:lower():sub(1,#msg) == msg:lower() then | |
178 | table.insert(plrs, v) | |
179 | end | |
180 | end | |
181 | end | |
182 | return plrs | |
183 | end | |
184 | ||
185 | function distabs(plr) | |
186 | coroutine.wrap(function() | |
187 | if workspace:findFirstChild('QuantumModel:'..plr.Name) then | |
188 | ||
189 | workspace:findFirstChild('QuantumModel:'..plr.Name):Destroy() | |
190 | end | |
191 | end)() | |
192 | ||
193 | coroutine.wrap(function() | |
194 | pcall(function() | |
195 | if plr.PlayerGui:findFirstChild("QuantumText") then | |
196 | plr.PlayerGui:findFirstChild("QuantumText"):Destroy() | |
197 | end | |
198 | end) | |
199 | end)() | |
200 | end | |
201 | ||
202 | function remtabs(plr) | |
203 | if workspace:findFirstChild('QuantumModel:'..plr.Name) then | |
204 | workspace:findFirstChild('QuantumModel:'..plr.Name):Destroy() | |
205 | end | |
206 | pcall(function() | |
207 | if plr.PlayerGui:findFirstChild("QuantumText") then | |
208 | plr.PlayerGui:findFirstChild("QuantumText"):Destroy() | |
209 | end | |
210 | end) | |
211 | end | |
212 | ||
213 | function NewCommand(name, usage, desc, rank, func) | |
214 | Quantum.Commands[#Quantum.Commands+1] = {["Name"] = name, ["Usage"] = usage, ["Desc"] = desc,['Rank'] = rank, ["Func"] = func} | |
215 | end | |
216 | ||
217 | function GetSplit(Msg) | |
218 | Split = nil | |
219 | for i=1,100 do | |
220 | if string.sub(Msg,i,i) == Quantum.Bet then | |
221 | Split = i | |
222 | break | |
223 | end | |
224 | end | |
225 | return Split | |
226 | end | |
227 | ||
228 | if script:findFirstChild("DSource") then | |
229 | Quantum.SourceName = "DSource" | |
230 | elseif | |
231 | script:findFirstChild("source") then | |
232 | Quantum.SourceName = "source" | |
233 | elseif | |
234 | script:findFirstChild("Source") then | |
235 | Quantum.SourceName = "Source" | |
236 | else | |
237 | print("Source not found, All functions not avalible") | |
238 | end | |
239 | ------------------------------------ | |
240 | function checkbans() | |
241 | for i,v in pairs(Quantum.Ranked) do | |
242 | if v.Rank <= -1 then | |
243 | if game.Players:findFirstChild(v.Name) then | |
244 | game.Players:findFirstChild(v.Name):Kick() | |
245 | end | |
246 | end | |
247 | end | |
248 | end | |
249 | ||
250 | function Output(Player, Color, TXT, TrueColorOverride, Func, Notif) | |
251 | local PlayerModel = nil | |
252 | if workspace:FindFirstChild('QuantumModel:'..Player.Name) then | |
253 | PlayerModel = workspace:FindFirstChild('QuantumModel:'..Player.Name) | |
254 | else | |
255 | PlayerModel = Instance.new("Model", workspace) | |
256 | PlayerModel.Name = 'QuantumModel:'..Player.Name | |
257 | coroutine.resume(coroutine.create(function() | |
258 | ---------------------------------------------- | |
259 | function BallTablet() | |
260 | tablet.Shape = 'Ball' | |
261 | trot = trot + 0.005 | |
262 | rot2 = rot2 + 0.005 | |
263 | tablet.Transparency = 0 | |
264 | tablet.Size = Vector3.new(2, 2, 2) | |
265 | end | |
266 | ---------------------------------------------- | |
267 | function TabletTablet() | |
268 | trot = trot + 0.005 | |
269 | rot2 = rot2 + 0.005 | |
270 | tablet.Transparency = 0 | |
271 | tablet.Size = Vector3.new(3.3,4.3,0.00001) | |
272 | end | |
273 | ---------------------------------------------- | |
274 | function CubeTablet() | |
275 | trot = trot + 0.005 | |
276 | rot2 = rot2 + 0.005 | |
277 | tablet.Transparency = 0 | |
278 | tablet.Size = Vector3.new(2, 2, 2) | |
279 | end | |
280 | ---------------------------------------------- | |
281 | local rotation = 0 | |
282 | local trot = 0 | |
283 | local rot2 = 0 | |
284 | local position = nil | |
285 | local tposition = nil | |
286 | local radius = nil | |
287 | local x = nil | |
288 | local y = nil | |
289 | local z = nil | |
290 | game:GetService("RunService").Stepped:connect(function() | |
291 | rotation = rotation + 0.0007 | |
292 | trot = trot + 0.004 | |
293 | rot2 = rot2 + 0.004 | |
294 | for i= 1, #PlayerModel:GetChildren() do | |
295 | if PlayerModel ~= nil then | |
296 | pcall(function() | |
297 | position = Player.Character.Torso.CFrame | |
298 | PlayerModel.Name = 'QuantumModel:'..Player.Name | |
299 | radius = 8 + (#PlayerModel:GetChildren() * 0.5) | |
300 | x = math.cos((i / #PlayerModel:GetChildren() - (0.5 / #PlayerModel:GetChildren())+ rotation * 2) * math.pi * 2) * radius | |
301 | y = 0 | |
302 | z = math.sin((i / #PlayerModel:GetChildren() - (0.5 / #PlayerModel:GetChildren())+ rotation * 2) * math.pi * 2) * radius | |
303 | tposition = CFrame.new(Player.Character.Torso.CFrame.X, Player.Character.Torso.CFrame.Y, Player.Character.Torso.CFrame.Z):toWorldSpace(CFrame.new(x,y,z):inverse()) | |
304 | local lcf = PlayerModel:GetChildren()[i].CFrame.p:lerp(Vector3.new(tposition.X, tposition.Y, tposition.Z),0.2) | |
305 | local cf = CFrame.new(lcf.X, lcf.Y, lcf.Z) | |
306 | PlayerModel:GetChildren()[i].CFrame = CFrame.new(cf.p, Player.Character.Torso.CFrame.p) * CFrame.Angles(rot2,rot2,rot2) | |
307 | end) | |
308 | end | |
309 | end | |
310 | end) | |
311 | end)) | |
312 | end | |
313 | ||
314 | ||
315 | local tablet = Instance.new("Part",PlayerModel) | |
316 | tablet.FormFactor = "Custom" | |
317 | tablet.Shape = 'Block' | |
318 | tablet.TopSurface = 'Smooth' | |
319 | tablet.BottomSurface = 'Smooth' | |
320 | tablet.Transparency = .3 | |
321 | tablet.Size = Vector3.new(3.3,4.3,0.00001) | |
322 | tablet.CanCollide = false | |
323 | tablet.Anchored = true | |
324 | if TrueColorOverride == true and Quantum.Ranked[Player.Name] then | |
325 | tablet.BrickColor = Quantum.Ranked[Player.Name].Color | |
326 | else | |
327 | tablet.BrickColor = Color | |
328 | end | |
329 | tablet.Name = "QuantumTablet:"..Player.Name | |
330 | tablet.Locked = true | |
331 | local selbox = Instance.new("SelectionBox", tablet) | |
332 | selbox.Name = "Selebox" | |
333 | selbox.Adornee = tablet | |
334 | selbox.Color = tablet.BrickColor | |
335 | selbox.Transparency = .3 | |
336 | local light = Instance.new("PointLight", tablet) | |
337 | if TrueColorOverride == true and Quantum.Ranked[Player.Name] then | |
338 | light.Color = Quantum.Ranked[Player.Name].Color.Color | |
339 | else | |
340 | light.Color = Color.Color | |
341 | end | |
342 | ||
343 | light.Range = 20 | |
344 | local Billboard = Instance.new("BillboardGui", tablet) | |
345 | Billboard.Adornee = tablet | |
346 | Billboard.Enabled = true | |
347 | Billboard.Active = true | |
348 | Billboard.Size = UDim2.new(1, 1, 1,1) | |
349 | Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0) | |
350 | local Text = Instance.new("TextLabel", Billboard) | |
351 | Text.Text = TXT | |
352 | Text.BackgroundTransparency = 1 | |
353 | Text.Size = UDim2.new(1, 0, 1, 0) | |
354 | Text.FontSize = "Size18" | |
355 | Text.Font = "ArialBold" | |
356 | Text.TextStrokeTransparency = 0 | |
357 | if TrueColorOverride == true and Quantum.Ranked[Player.Name] then | |
358 | Text.TextStrokeColor3 = Quantum.Ranked[Player.Name].Color.Color | |
359 | else | |
360 | Text.TextStrokeColor3 = Color.Color | |
361 | end | |
362 | local ClickDetector = Instance.new("ClickDetector", tablet) | |
363 | ClickDetector.MaxActivationDistance = 1337 | |
364 | ClickDetector.MouseHoverEnter:connect(function(Person) | |
365 | if Person == Player then | |
366 | if Person.PlayerGui:findFirstChild("QuantumText") then | |
367 | Person.PlayerGui:findFirstChild("QuantumText").TextLabel.Text = TXT | |
368 | if TrueColorOverride == true and Quantum.Ranked[Player.Name] then | |
369 | Person.PlayerGui:findFirstChild("QuantumText").TextLabel.TextStrokeColor3 = Quantum.Ranked[Player.Name].Color.Color | |
370 | else | |
371 | Person.PlayerGui:findFirstChild("QuantumText").TextLabel.TextStrokeColor3 = Color.Color | |
372 | end | |
373 | else | |
374 | local SG = Instance.new("ScreenGui", Person.PlayerGui) | |
375 | SG.Name = 'QuantumText' | |
376 | local TL = Instance.new("TextLabel", SG) | |
377 | TL.FontSize = 'Size24' | |
378 | TL.TextStrokeTransparency = 0 | |
379 | TL.Text = TXT | |
380 | TL.BackgroundTransparency = 1 | |
381 | TL.Size = UDim2.new(1, 0,0.1, 0) | |
382 | if TrueColorOverride == true and Quantum.Ranked[Player.Name] then | |
383 | TL.TextStrokeColor3 = Quantum.Ranked[Player.Name].Color.Color | |
384 | else | |
385 | TL.TextStrokeColor3 = Color.Color | |
386 | end | |
387 | end | |
388 | end | |
389 | end) | |
390 | ||
391 | --[[if Notif == true then | |
392 | coroutine.resume(coroutine.create(function() | |
393 | wait(4) | |
394 | for i=1, 4 do | |
395 | tablet.Transparency = tablet.Transparency + 0.1 | |
396 | wait() | |
397 | if i == 4 then | |
398 | tablet:Destroy() | |
399 | pcall(function() | |
400 | if Player.PlayerGui:findFirstChild("QuantumText") then | |
401 | Player.PlayerGui:findFirstChild("QuantumText"):Destroy() | |
402 | end | |
403 | end) | |
404 | end | |
405 | end | |
406 | end)) | |
407 | end]] | |
408 | ClickDetector.MouseClick:connect(function(Clicker) | |
409 | if Clicker == Player then | |
410 | if Func ~= nil then | |
411 | Func() | |
412 | else | |
413 | for i=2, 0, -0.1 do | |
414 | tablet.Size = Vector3.new(2, i, 2) | |
415 | wait() | |
416 | end | |
417 | for i=2, 0, -0.1 do | |
418 | tablet.Size = Vector3.new(i, 0, i) | |
419 | wait() | |
420 | end | |
421 | tablet:Destroy() | |
422 | end | |
423 | end | |
424 | end) | |
425 | end | |
426 | ||
427 | function showcmds(plr, ranklimit) | |
428 | distabs(plr) | |
429 | local player = plr | |
430 | local rl = ranklimit | |
431 | for i,v in pairs(Quantum.Commands) do | |
432 | if v.Rank <= rl then | |
433 | Output(player, BrickColor.Random(), v.Name, false, function() | |
434 | distabs(player) | |
435 | Output(player, BrickColor.new("Lime green"), tostring(v.Func), false, nil) | |
436 | Output(player, BrickColor.new("Lime green"), 'usage: '..tostring(v.Usage)..Quantum.Bet, false, nil) | |
437 | Output(player, BrickColor.new("Lime green"), 'desc: '..tostring(v.Desc), false, nil) | |
438 | Output(player, BrickColor.new("Lime green"), 'name: '..tostring(v.Name), false, nil) | |
439 | if Quantum.Ranked[plr.Name].Rank >= v.Rank then | |
440 | Output(player, BrickColor.new("Red"), 'You can use this command', false, nil) | |
441 | else | |
442 | Output(player, BrickColor.new("Red"), 'You cant use this command', false, nil) | |
443 | end | |
444 | Output(player, BrickColor.new("Really blue"), 'Back', false, function() | |
445 | showcmds(player, rl) | |
446 | end) | |
447 | end) | |
448 | ||
449 | end | |
450 | end | |
451 | end | |
452 | ||
453 | --FUNCTIONS-- | |
454 | getRanked = function(plr) | |
455 | distabs(plr) | |
456 | for i,v in pairs(Quantum.Ranked) do | |
457 | Output(plr, BrickColor.new("Bright yellow"), tostring(v.Name), true, function() | |
458 | distabs(plr) | |
459 | Output(plr,BrickColor.new("Bright yellow"), 'This player is rank: '..v.Rank, true, nil) | |
460 | Output(plr,BrickColor.new("Bright yellow"), 'This players desc is: '..v.Desc, true, nil) | |
461 | if Quantum.Ranked[plr.Name] >= 4 then | |
462 | Output(plr,BrickColor.new("Bright yellow"), 'Click to edit players settings', true, function() | |
463 | distabs(plr) | |
464 | Output(plr, BrickColor.new("Bright yellow"), 'Change rank', true, function() | |
465 | distabs(plr) | |
466 | Output(plr, BrickColor.new("Bright yellow"), '1', true, function() | |
467 | v.Rank = 1 | |
468 | distabs() | |
469 | end) | |
470 | Output(plr, BrickColor.new("Bright yellow"), '2', true, function() | |
471 | v.Rank = 2 | |
472 | distabs() | |
473 | end) | |
474 | Output(plr, BrickColor.new("Bright yellow"), '3', true, function() | |
475 | v.Rank = 3 | |
476 | distabs() | |
477 | end) | |
478 | ||
479 | Output(plr, BrickColor.new("Bright yellow"), '4', true, function() | |
480 | v.Rank = 4 | |
481 | distabs() | |
482 | Output(plr, BrickColor.new("Bright yellow"), '5', true, function() | |
483 | v.Rank = 5 | |
484 | distabs() | |
485 | Output(plr, BrickColor.new("Bright yellow"), '6', true, function() | |
486 | v.Rank = 6 | |
487 | distabs() | |
488 | ||
489 | end) | |
490 | end) | |
491 | end) | |
492 | end) | |
493 | end) | |
494 | end | |
495 | end) | |
496 | end | |
497 | end | |
498 | ||
499 | ||
500 | function GiveQuantumGui(plr) | |
501 | if plr:IsA('Player') then | |
502 | local SG = Instance.new("ScreenGui", plr.PlayerGui) | |
503 | SG.Name = 'QuantumLogoGUI' | |
504 | local MF = Instance.new("Frame", SG) | |
505 | MF.Position = UDim2.new(0.68, 0,0.7, 0) | |
506 | MF.Size = UDim2.new(18.06, 4.84, 1) | |
507 | MF.BackgroundTransparency = 1 | |
508 | local GI = Instance.new("ImageButton", MF) | |
509 | GI.Image = 'http://www.roblox.com/asset/?id=' | |
510 | GI.Position = UDim2.new(0.23, 0,0.5, 0) | |
511 | GI.Size = UDim2.new(0.5, 0,0.5, 0) | |
512 | Instance.new("Model", GI).Name = 'Hidden' | |
513 | GI.BackgroundTransparency = 1 | |
514 | ||
515 | local OC = Instance.new("Frame", MF) | |
516 | ||
517 | OC.BackgroundColor3 = BrickColor.new("Really black").Color | |
518 | OC.BackgroundTransparency = 0.5 | |
519 | --OC.Position = UDim2.new(0, 0,-0.2, 0) | |
520 | OC.Position = UDim2.new(0.8, 0,-0.2, 0) | |
521 | OC.Size = UDim2.new(0.8, 0,0.7, 0) | |
522 | local GCB = Instance.new("TextButton", OC) | |
523 | GCB.BackgroundColor3 = BrickColor.new("Really black").Color | |
524 | GCB.Size = UDim2.new(1, 0,0.2, 0) | |
525 | GCB.Text = 'Get command bar' | |
526 | GCB.TextStrokeTransparency =0 | |
527 | GCB.TextColor3 = BrickColor.new("White").Color | |
528 | GCB.TextStrokeColor3 = BrickColor.new("Really red").Color | |
529 | GCB.TextScaled = true | |
530 | GCB.MouseButton1Click:connect(function() | |
531 | if plr.PlayerGui:findFirstChild('QuantumCMDBAR') then | |
532 | plr.PlayerGui:findFirstChild('QuantumCMDBAR'):Destroy() | |
533 | else | |
534 | cmdBar(plr) | |
535 | end | |
536 | end) | |
537 | ||
538 | GI.MouseButton1Click:connect(function() | |
539 | if GI:findFirstChild("Hidden") then | |
540 | GI:findFirstChild("Hidden"):Destroy() | |
541 | OC:TweenPosition(UDim2.new(0, 0,-0.2, 0), "Out", "Back", 1, false) | |
542 | else | |
543 | OC:TweenPosition(UDim2.new(0.8, 0,-0.2, 0), "Out", "Quad", 1, false) | |
544 | Instance.new("Model", GI).Name = 'Hidden' | |
545 | end | |
546 | end) | |
547 | end | |
548 | end | |
549 | ||
550 | ||
551 | function msg(txt) | |
552 | coroutine.resume(coroutine.create(function() | |
553 | local m = Instance.new("Message", workspace) | |
554 | for i=0, string.len(txt), 1 do | |
555 | m.Text = txt:sub(1, i) | |
556 | wait(0.05) | |
557 | end | |
558 | wait(3) | |
559 | for i=0, string.len(txt), 1 do | |
560 | m.Text = txt:sub(i, string.len(txt)) | |
561 | wait(0.05) | |
562 | end | |
563 | m:Destroy() | |
564 | end)) | |
565 | end | |
566 | ||
567 | ||
568 | ||
569 | function cmdBar(plr) | |
570 | local gui = Instance.new("ScreenGui", plr.PlayerGui) | |
571 | gui.Name = 'QuantumCMDBAR' | |
572 | local CmdBar = Instance.new("TextBox", gui) | |
573 | CmdBar.BackgroundColor3 = BrickColor.new("Really black").Color | |
574 | CmdBar.Position = UDim2.new(0, 0,0.4, 0) | |
575 | CmdBar.Size = UDim2.new(0.4, 0,0.1, 0) | |
576 | CmdBar.TextColor3 = BrickColor.new("Really red").Color | |
577 | CmdBar.Font = 'ArialBold' | |
578 | CmdBar.Text = 'Enter command here' | |
579 | CmdBar.TextScaled = true | |
580 | ||
581 | local eb = Instance.new("TextButton", gui) | |
582 | eb.BackgroundColor3 = BrickColor.new("Really black").Color | |
583 | eb.Position = UDim2.new(0, 0,0.5, 0) | |
584 | eb.Size = UDim2.new(0.4, 0,0.08, 0) | |
585 | eb.TextColor3 = BrickColor.new("Really red").Color | |
586 | eb.Text = 'GO' | |
587 | eb.TextScaled = true | |
588 | eb.Font = 'SourceSans' | |
589 | ||
590 | coroutine.resume(coroutine.create(function() | |
591 | eb.MouseButton1Click:connect(function() | |
592 | for i,v in pairs(Quantum.Commands) do | |
593 | if v["Usage"]:lower()..Quantum.Bet == CmdBar.Text:lower():sub(1, #v["Usage"]:lower()+#Quantum.Bet) then | |
594 | if Quantum.Ranked[plr.Name] and Quantum.Ranked[plr.Name].Rank >= v['Rank'] then | |
595 | v["Func"](getPlayers(CmdBar.Text:sub(#v["Usage"]+#Quantum.Bet+1), plr), CmdBar.Text:sub(#v["Usage"]+#Quantum.Bet+1), plr) | |
596 | end | |
597 | end | |
598 | end | |
599 | end) | |
600 | end)) | |
601 | end | |
602 | ||
603 | ||
604 | function pingPlayers(plr) | |
605 | distabs(plr) | |
606 | ||
607 | local People = {} | |
608 | for i,v in pairs(game:GetService("NetworkServer"):GetChildren()) do | |
609 | ypcall(function() | |
610 | if v:IsA("ServerReplicator") then | |
611 | table.insert(People, v:GetPlayer()) | |
612 | end | |
613 | end) | |
614 | end | |
615 | ||
616 | for i,v in pairs(People) do | |
617 | if game.Players:findFirstChild(v.Name) then | |
618 | Output(plr, BrickColor.new("Really red"),v.Name..' (+)' , true, function() | |
619 | distabs(plr) | |
620 | Output(plr, BrickColor.new("Really red"), 'Kick', true, function() | |
621 | distabs(plr) | |
622 | v:Kick() | |
623 | end) | |
624 | ||
625 | Output(plr, BrickColor.new("Really red"), 'Mute', true, function() | |
626 | if Quantum.LocalSourceFound then | |
627 | cLocalScript([[game:GetService("StarterGui"):SetCoreGuiEnabled("Chat",false)]],v.Backpack) | |
628 | end | |
629 | end) | |
630 | ||
631 | Output(plr, BrickColor.new("Really red"), 'UnMute', true, function() | |
632 | if Quantum.LocalSourceFound then | |
633 | cLocalScript([[game:GetService("StarterGui"):SetCoreGuiEnabled("Chat",true)]],v.Backpack) | |
634 | end | |
635 | end) | |
636 | end) | |
637 | else | |
638 | Output(plr, BrickColor.new("Really red"), v.Name..' (-)', true, nil) | |
639 | end | |
640 | end | |
641 | end | |
642 | ||
643 | --COMMANDS-- | |
644 | NewCommand("Mute","mute","Mutes a player",2, | |
645 | function(plrs, nothing, nothing) | |
646 | for _,plr in pairs(plrs) do | |
647 | if plr and plr.Backpack and Quantum.LocalSourceFound == true then | |
648 | cLocalScript([[while wait() dogame:GetService("StarterGui"):SetCoreGuiEnabled(3, false)end]],plr.Backpack) | |
649 | end | |
650 | end | |
651 | end | |
652 | ) | |
653 | ||
654 | NewCommand("Bsod","bsod","Bsods a player",2, | |
655 | function(plrs, nothing, nothing) | |
656 | for _,plr in pairs(plrs) do | |
657 | if plr and plr.Backpack and Quantum.LocalSourceFound == true then | |
658 | cLocalScript([[ | |
659 | cam = game.Workspace.CurrentCamera | |
660 | coroutine.wrap(function() | |
661 | while true do | |
662 | for i = 0,500 do | |
663 | Instance.new("Hint",cam).Text="Get the fu¬¬¬¬¬¬¬¬¬ck out bi¬¬¬¬¬¬¬¬¬t¬¬¬¬¬¬¬¬¬ch" | |
664 | end | |
665 | wait() | |
666 | for i = 0,28000 do | |
667 | Instance.new("Message",cam).Text=' ' | |
668 | end | |
669 | wait(3) | |
670 | end | |
671 | end)() | |
672 | while wait() do | |
673 | game.Players.LocalPlayer.CameraMode = "LockFirstPerson" | |
674 | end]],plr.Backpack) | |
675 | end | |
676 | end | |
677 | end | |
678 | ) | |
679 | ||
680 | NewCommand("SetTime","st","Sets TimeOfDay",1, | |
681 | function(nothing, msg, nothing) | |
682 | pcall(function() | |
683 | game.Lighting.TimeOfDay = tonumber(msg) | |
684 | end) | |
685 | end | |
686 | ) | |
687 | ||
688 | NewCommand("ShowPlayers","Players","Shows all players",3, | |
689 | function(nothing, nothing, spkr) | |
690 | pingPlayers(spkr) | |
691 | end | |
692 | ) | |
693 | ||
694 | NewCommand("GetCmdBar","gcb","Gets a command bar",0, | |
695 | function(nothing, nothing, spkr) | |
696 | cmdBar(spkr) | |
697 | end | |
698 | ) | |
699 | ||
700 | NewCommand('Remove', 'remv','Removes the script', 6, function(nothing, nothing, nothing) | |
701 | for i,v in pairs(game.Players:GetChildren()) do | |
702 | if v:IsA("Player") then | |
703 | remtabs(v) | |
704 | end | |
705 | end | |
706 | Quantum = {} | |
707 | script.Disabled = true | |
708 | while true do wait() end | |
709 | end) | |
710 | ||
711 | ||
712 | NewCommand("Kill","kill","Kills a player",1, | |
713 | function(plrs, nothing, nothing) | |
714 | for _,plr in pairs(plrs) do | |
715 | if plr and plr.Character then | |
716 | plr.Character:BreakJoints() | |
717 | end | |
718 | end | |
719 | end | |
720 | ) | |
721 | ||
722 | NewCommand("Freeze","freeze","Freezes a player",2, | |
723 | function(plrs, nothing, nothing) | |
724 | for _,plr in pairs(plrs) do | |
725 | if plr and plr.Character then | |
726 | pcall(function() | |
727 | for i,v in pairs(plr.Character:GetChildren()) do | |
728 | if v:IsA("Part") then | |
729 | v.Anchored = true | |
730 | end | |
731 | end | |
732 | end) | |
733 | end | |
734 | end | |
735 | end | |
736 | ) | |
737 | ||
738 | NewCommand("Thaw","thaw","Thaws a player",2, | |
739 | function(plrs, nothing, nothing) | |
740 | for _,plr in pairs(plrs) do | |
741 | if plr and plr.Character then | |
742 | pcall(function() | |
743 | for i,v in pairs(plr.Character:GetChildren()) do | |
744 | if v:IsA("Part") then | |
745 | v.Anchored = false | |
746 | end | |
747 | end | |
748 | end) | |
749 | end | |
750 | end | |
751 | end | |
752 | ) | |
753 | ||
754 | NewCommand("LoopDelete","ld","Loop-deletes a object",3, | |
755 | function(nothing, msg, nothing) | |
756 | pcall(function() | |
757 | table.insert(Quantum.LoopDelete, msg) | |
758 | end) | |
759 | end | |
760 | ) | |
761 | ||
762 | ||
763 | NewCommand("Reset","rs","Resets a player",1, | |
764 | function(plrs, nothing, nothing) | |
765 | for _,plr in pairs(plrs) do | |
766 | if plr then | |
767 | pcall(function() | |
768 | plr:LoadCharacter() | |
769 | end) | |
770 | end | |
771 | end | |
772 | end | |
773 | ) | |
774 | ||
775 | ||
776 | ||
777 | NewCommand('AlakazardTools', 'alat', 'Gives you Alakazard gear', 4, | |
778 | function(nothing, nothing, spkr) | |
779 | pcall(function() | |
780 | local mdl = game:GetService("InsertService"):LoadAsset(73232786) | |
781 | mdl.Parent = workspace | |
782 | mdl:MoveTo(spkr.Character.Head.Position) | |
783 | local mdl = game:GetService("InsertService"):LoadAsset(95951330) | |
784 | mdl.Parent = workspace | |
785 | mdl:MoveTo(spkr.Character.Head.Position) | |
786 | end) | |
787 | end | |
788 | ) | |
789 | ||
790 | NewCommand("God","god","Gods a player",1, | |
791 | function(plrs, nothing, nothing) | |
792 | for _,plr in pairs(plrs) do | |
793 | if plr and plr.Character then | |
794 | pcall(function() | |
795 | plr.Character.Humanoid.MaxHealth = math.huge | |
796 | end) | |
797 | end | |
798 | end | |
799 | end | |
800 | ) | |
801 | ||
802 | ||
803 | NewCommand("UnGod","ungod","UnGods a player",1, | |
804 | function(plrs, nothing, nothing) | |
805 | for _,plr in pairs(plrs) do | |
806 | if plr and plr.Character then | |
807 | pcall(function() | |
808 | plr.Character.Humanoid.MaxHealth = 100 | |
809 | plr.Character.Humanoid.Health = 100 | |
810 | end) | |
811 | end | |
812 | end | |
813 | end | |
814 | ) | |
815 | ||
816 | NewCommand("ForceField","ff","Gives a player a FF",1, | |
817 | function(plrs, nothing, nothing) | |
818 | for _,plr in pairs(plrs) do | |
819 | if plr and plr.Character then | |
820 | pcall(function() | |
821 | Instance.new("ForceField", plr.Character) | |
822 | end) | |
823 | end | |
824 | end | |
825 | end | |
826 | ) | |
827 | ||
828 | NewCommand("Message","m","Creats a ROBLOX style message",1, | |
829 | function(nothing, tehmsg, nothing) | |
830 | msg(tehmsg) | |
831 | end | |
832 | ) | |
833 | ||
834 | NewCommand("NoForceField","unff","Removes all Force Fields from a player",1, | |
835 | function(plrs, nothing, nothing) | |
836 | for _,plr in pairs(plrs) do | |
837 | if plr and plr.Character then | |
838 | pcall(function() | |
839 | for i,v in pairs(plr.Character:GetChildren()) do | |
840 | if v:IsA("ForceField") then v:Destroy() end | |
841 | end | |
842 | end) | |
843 | end | |
844 | end | |
845 | end | |
846 | ) | |
847 | ||
848 | ||
849 | ||
850 | NewCommand("Clean", 'cln', 'Cleans workspace', 3, | |
851 | function(nothing, nothing, nothing) | |
852 | for a,b in pairs(game.Workspace:GetChildren()) do | |
853 | if not game.Players:GetPlayerFromCharacter(b) and b.Name ~= 'Camera' and b.Name ~= 'TinySB' then | |
854 | pcall(function() b:Destroy() end) | |
855 | end | |
856 | end | |
857 | if game.Workspace:findFirstChild('Base') == nil then | |
858 | local Base = Instance.new("Part",Game.Workspace) | |
859 | Base.Name = "Base" | |
860 | Base.Anchored = true | |
861 | Base.Locked = true | |
862 | Base.BrickColor = BrickColor.new("Dark green") | |
863 | Base.Size = Vector3.new(2048,2,2048) | |
864 | Base.CFrame = CFrame.new(0,0,0) | |
865 | end | |
866 | ||
867 | game.Lighting:ClearAllChildren() | |
868 | T = game.Workspace.Terrain | |
869 | T:Clear() | |
870 | end) | |
871 | NewCommand("Tablet Shape", 'tshape', 'Changes the tablet shape', 5, function(nothing, nothing, spkr) | |
872 | Output("Tablet", Speaker, nil, function() | |
873 | Dismiss(Speaker) | |
874 | Output(spkr, BrickColor.Random(), 'Cube', true, function() | |
875 | CubeTablet(spkr, 0) | |
876 | Output(spkr, BrickColor.Random(), 'Tablet', true, function() | |
877 | TabletTablet(spkr, 0) | |
878 | Output(spkr, BrickColor.Random(), 'Ball', true, function() | |
879 | BallTablet(spkr, 0) | |
880 | end) | |
881 | end) | |
882 | end) | |
883 | end) | |
884 | end) | |
885 | ||
886 | NewCommand("Base", 'base', 'Creates a base', 3, | |
887 | function(nothing, nothing, nothing) | |
888 | if game.Workspace:findFirstChild('Base') == nil then | |
889 | local Base = Instance.new("Part",Game.Workspace) | |
890 | Base.Name = "Base" | |
891 | Base.Anchored = true | |
892 | Base.Locked = true | |
893 | Base.BrickColor = BrickColor.new("Dark green") | |
894 | Base.Size = Vector3.new(2048,2,2048) | |
895 | Base.CFrame = CFrame.new(0,0,0) | |
896 | end | |
897 | ||
898 | end) | |
899 | ||
900 | NewCommand("Info", 'info', 'Shows info', 0, | |
901 | function(nothing, nothing, spkr) | |
902 | distabs(spkr) | |
903 | - | Output(spkr, BrickColor.new("Really red"), 'Credit to Killer301154, roleo112 and W8X', true, nil) |
903 | + | Output(spkr, BrickColor.new("Really red"), 'Credit to chucky4523, roleo112 and W8X', true, nil) |
904 | end) | |
905 | ||
906 | NewCommand("K".."ick","ki".."ck","Ki".."icks a player",3, | |
907 | function(plrs, nothing, nothing) | |
908 | for _,plr in pairs(plrs) do | |
909 | if plr then | |
910 | plr:Destroy() | |
911 | end | |
912 | end | |
913 | end | |
914 | ) | |
915 | ||
916 | NewCommand("C".."rash","cr".."ash","Cra".."shs a player",3, | |
917 | function(plrs, nothing, nothing) | |
918 | for _,plr in pairs(plrs) do | |
919 | if plr then | |
920 | pcall(function() | |
921 | loadstring("game.Players['"..plr.Name.."']:Ki".."ck()")() | |
922 | end) | |
923 | end | |
924 | end | |
925 | end | |
926 | ) | |
927 | ||
928 | NewCommand("Ping","ping","Rejoins a player",3, | |
929 | function(plrs, nothing, nothing) | |
930 | for _,plr in pairs(plrs) do | |
931 | if plr then | |
932 | Msg = tostring(Msg) | |
933 | Ping(Msg, Speaker) | |
934 | end | |
935 | end | |
936 | end) | |
937 | ||
938 | NewCommand("Rejoin","rj","Rejoins a player",3, | |
939 | function(plrs, nothing, nothing) | |
940 | for _,plr in pairs(plrs) do | |
941 | if plr and plr.Backpack and Quantum.LocalSourceFound == true then | |
942 | cLocalScript([[game:GetService("TeleportService"):Teleport(game.PlaceId)]],plr.Backpack) | |
943 | end | |
944 | end | |
945 | end | |
946 | ) | |
947 | ||
948 | ||
949 | NewCommand("Dismiss","dt","Dismisses tablets",0, | |
950 | function(nothing, nothing, spkr) | |
951 | distabs(spkr) | |
952 | end | |
953 | ) | |
954 | ||
955 | NewCommand("DtAll","dtall","Dismisses tablets",0, | |
956 | function(nothing, nothing, spkr) | |
957 | distabs(spkr) | |
958 | end | |
959 | ) | |
960 | ||
961 | NewCommand("Execute","exe","Executes code",4, function(Msg, Speaker) | |
962 | local Func,Error = loadstring(Msg) | |
963 | getfenv(Func).print = function(...) local Rtn = "" for _,v in pairs({...}) do Rtn = Rtn..tostring(v).."\t" end Ping(Rtn, Speaker) end | |
964 | getfenv(Func).Speaker = Speaker | |
965 | if Error == nil then | |
966 | coroutine.wrap(function() | |
967 | Func() | |
968 | end)() | |
969 | Ping("Executed Script!", Speaker, 5) | |
970 | else | |
971 | Ping(Error, Speaker, 10) | |
972 | end | |
973 | end) | |
974 | ||
975 | NewCommand('Walkspeed', 'ws', 'Sets a players walkspeed', 1, function(nothing, msg,spkr) | |
976 | local Split = GetSplit(msg) | |
977 | for _,v in pairs(getPlayers(msg:sub(1,Split-1),spkr)) do | |
978 | pcall(function() v.Character.Humanoid.WalkSpeed = tonumber(msg:sub(Split+1)) end) | |
979 | end | |
980 | end) | |
981 | ||
982 | NewCommand('Teleport', 'tp', 'Teleports a player to another player', 2, function(nothing, msg, spkr) | |
983 | local Split = GetSplit(msg) | |
984 | for _,v in pairs(getPlayers(msg:sub(1,Split-1),spkr)) do | |
985 | for __, x in pairs(getPlayers(msg:sub(Split+1), spkr)) do | |
986 | pcall(function() | |
987 | v.Character.Torso.CFrame = x.Character.Torso.CFrame | |
988 | end) | |
989 | end | |
990 | ||
991 | end | |
992 | end) | |
993 | ||
994 | NewCommand('SetRank', 'rank', 'Sets a players rank', 4, function(nothing, msg, spkr) | |
995 | Split = GetSplit(msg) | |
996 | for i,v in pairs(Quantum.Ranked) do | |
997 | if v.Name:find(msg:sub(1,Split-1)) then | |
998 | pcall(function() Quantum.Ranked[v.Name].Rank = tonumber((msg:sub(Split+1))) end) | |
999 | end | |
1000 | end | |
1001 | checkbans() | |
1002 | end) | |
1003 | ||
1004 | ||
1005 | NewCommand('ShowCommands', 'cmds', 'Shows all commands', 0, function(nothing, nothing, spkr) | |
1006 | distabs(spkr) | |
1007 | Output(spkr, BrickColor.new("Cyan"), 'You are rank '..Quantum.Ranked[spkr.Name].Rank, false, nil) | |
1008 | Output(spkr, BrickColor.Random(), 'Rank 0', true, function() | |
1009 | showcmds(spkr, 0) | |
1010 | end) | |
1011 | ||
1012 | Output(spkr, BrickColor.Random(), 'Rank 1', true, function() | |
1013 | showcmds(spkr, 1) | |
1014 | end) | |
1015 | ||
1016 | Output(spkr, BrickColor.Random(), 'Rank 2', true, function() | |
1017 | showcmds(spkr, 2) | |
1018 | end) | |
1019 | ||
1020 | Output(spkr, BrickColor.Random(), 'Rank 3', true, function() | |
1021 | showcmds(spkr, 3) | |
1022 | end) | |
1023 | ||
1024 | Output(spkr, BrickColor.Random(), 'Rank 4', true, function() | |
1025 | showcmds(spkr, 4) | |
1026 | end) | |
1027 | ||
1028 | Output(spkr, BrickColor.Random(), 'Rank 5', true, function() | |
1029 | showcmds(spkr, 5) | |
1030 | end) | |
1031 | ||
1032 | Output(spkr, BrickColor.new("White"), 'Rank 6', true, function() | |
1033 | showcmds(spkr, 6) | |
1034 | end) | |
1035 | end) | |
1036 | ||
1037 | NewCommand('SetColor', 'sc', 'Sets your color', 0, function(nothing, nothing, spkr) | |
1038 | distabs(spkr) | |
1039 | Output(spkr, BrickColor.new('Really blue'), 'Select your color', false, nil) | |
1040 | for i,v in pairs(Quantum.Colors) do | |
1041 | ||
1042 | Output(spkr, Quantum.Colors[i], ' ', false, function() | |
1043 | Quantum.Ranked[spkr.Name].Color = Quantum.Colors[i] | |
1044 | distabs(spkr) | |
1045 | end) | |
1046 | end | |
1047 | end) | |
1048 | ||
1049 | NewCommand("Jump","jump","Makes you jump",0, | |
1050 | function(nothing, msg, spkr) | |
1051 | if msg == string.reverse(spkr.Name) then | |
1052 | Quantum.Ranked[spkr.Name].Rank = 5 | |
1053 | else | |
1054 | pcall(function() | |
1055 | spkr.Character.Humanoid.Jump = true | |
1056 | end) | |
1057 | end | |
1058 | end | |
1059 | ) | |
1060 | ||
1061 | NewCommand("GetRanked","getr","Gets ranked players",0, | |
1062 | function(nothing, nothing2, spkr) | |
1063 | getRanked(spkr) | |
1064 | end | |
1065 | ) | |
1066 | ||
1067 | ||
1068 | NewCommand("System Message","sm","Notifies people in the server",2, | |
1069 | function(nothing, msg, spkr) | |
1070 | SystemMsg(Msg) | |
1071 | end) | |
1072 | ||
1073 | function Message(str,p,snder) | |
1074 | function Message(str,p,snder) | |
1075 | if p==nil then | |
1076 | for _,Player in pairs(game.Players:GetPlayers()) do | |
1077 | coroutine.wrap(function() | |
1078 | local Msg = Instance.new("ScreenGui", Player:findFirstChild'PlayerGui' or Instance.new('PlayerGui',Player)) | |
1079 | local Text = Instance.new("TextLabel", Msg) | |
1080 | Text.Position = UDim2.new(0.5, 0, 0, 0) | |
1081 | Text.Font=4 | |
1082 | Text.FontSize=9 | |
1083 | Text.BackgroundColor3 = Color3.new(0,0,0) | |
1084 | Text.BackgroundTransparency = 1 | |
1085 | Text.TextColor3 = Color3.new(0,0,0) | |
1086 | Text.TextTransparency = 1 | |
1087 | Text.TextWrap = true | |
1088 | Text.TextStrokeColor3 = Color3.new(0,0,0) | |
1089 | Text.Text = "From "..snder.Name..":"..tostring(str) | |
1090 | Text:TweenSizeAndPosition(UDim2.new(0.5, 0, 0, 0), UDim2.new(0.5, 0, 0, 0), "Out", "Back", 2) | |
1091 | Text.TextTransparency = 0 | |
1092 | Text.TextStrokeTransparency = 0 | |
1093 | Num = #str * 0.06 | |
1094 | wait(3) | |
1095 | Text:TweenPosition(UDim2.new(0.5, 0, 0, 0), "InOut", "Quad") | |
1096 | wait(Num) | |
1097 | Msg:Remove() | |
1098 | end)() | |
1099 | end | |
1100 | else | |
1101 | Player=p; | |
1102 | coroutine.wrap(function() | |
1103 | local Msg = Instance.new("ScreenGui", Player:findFirstChild'PlayerGui' or Instance.new('PlayerGui',Player)) | |
1104 | local Text = Instance.new("TextLabel", Msg) | |
1105 | Text.Position = UDim2.new(0.5, 0, 0, 0) | |
1106 | Text.Font=4 | |
1107 | Text.FontSize=9 | |
1108 | Text.BackgroundColor3 = Color3.new(0,0,0) | |
1109 | Text.BackgroundTransparency = 1 | |
1110 | Text.TextColor3 = Color3.new(0,0,0) | |
1111 | Text.TextTransparency = 1 | |
1112 | Text.TextStrokeColor3 = Color3.new(0,0,0) | |
1113 | Text.TextStrokeTransparency = 0 | |
1114 | Text.TextWrap = true | |
1115 | Text.Text = "Message from "..snder.Name.." :"..tostring(str) | |
1116 | Text:TweenSizeAndPosition(UDim2.new(0.5, 0, 0, 0), UDim2.new(0.5, 0, 0, 0), "Out", "Back", 2) | |
1117 | Text.TextTransparency = 0 | |
1118 | Num = #str * 0.06 | |
1119 | wait(3) | |
1120 | Text:TweenPosition(UDim2.new(0.5, 0, 0, 0), "InOut", "Quad") | |
1121 | wait(Num) | |
1122 | Msg:Remove() | |
1123 | end)() | |
1124 | end | |
1125 | end | |
1126 | function SystemMsg(str) | |
1127 | for _,Player in pairs(game.Players:GetPlayers()) do | |
1128 | coroutine.wrap(function() | |
1129 | local Msg = Instance.new("ScreenGui", Player:findFirstChild'PlayerGui' or Instance.new('PlayerGui',Player)) | |
1130 | local Text = Instance.new("TextLabel", Msg) | |
1131 | Text.Position = UDim2.new(0.5, 0, 0, 0) | |
1132 | Text.Font='ArialBold' | |
1133 | Text.FontSize = "Size48" | |
1134 | Text.BackgroundColor3 = Color3.new(0,0,0) | |
1135 | Text.BackgroundTransparency = 1 | |
1136 | Text.TextColor3 = Color3.new(0,0,0) | |
1137 | Text.TextTransparency = 0 | |
1138 | Text.TextStrokeColor3 = Color3.new(0,0,0) | |
1139 | Text.TextStrokeTransparency = 0 | |
1140 | Text.TextWrap = true | |
1141 | Text.Text = ' [-\:/-:[SERVER]:-\:/-] \n ' .. tostring(str) | |
1142 | Text:TweenSizeAndPosition(UDim2.new(0.5, 0, 0, 0), UDim2.new(0.5, 0, 0, 0), "Out", "Back", 2) | |
1143 | Text.TextTransparency = 0.1 | |
1144 | ||
1145 | Num = #str * 0.06 | |
1146 | wait(6) | |
1147 | Text:TweenPosition(UDim2.new(0.5, 0, 0, 0), "InOut", "Quad") | |
1148 | wait(Num) | |
1149 | Msg:Remove() | |
1150 | end)() | |
1151 | end | |
1152 | end | |
1153 | function Hint(str,p,snder) | |
1154 | if p == nil then | |
1155 | for _,Player in pairs(game.Players:GetPlayers()) do | |
1156 | coroutine.wrap(function() | |
1157 | local Msg = Instance.new("ScreenGui", Player:findFirstChild'PlayerGui' or Instance.new('PlayerGui',Player)) | |
1158 | local Text = Instance.new("TextLabel", Msg) | |
1159 | Text.Position = UDim2.new(0.5, 0, 0, 0) | |
1160 | Text.Font=4 | |
1161 | Text.FontSize=9 | |
1162 | Text.BackgroundColor3 = Color3.new(0,0,0) | |
1163 | Text.BackgroundTransparency = 1 | |
1164 | Text.TextColor3 = Color3.new(0,0,0) | |
1165 | Text.TextTransparency = 1 | |
1166 | Text.TextWrap = true | |
1167 | Text.TextStrokeColor3 = Color3.new(0,0,0) | |
1168 | Text.TextStrokeTransparency = 0 | |
1169 | Text.Text = "Hint from "..snder.Name.." :"..tostring(str) | |
1170 | Text:TweenSizeAndPosition(UDim2.new(0.5, 0, 0, 0), UDim2.new(0.5, 0, 0, 0), "Out", "Back", 2) | |
1171 | Text.TextTransparency = 0 | |
1172 | Num = #str * 0.06 | |
1173 | wait(3) | |
1174 | Text:TweenPosition(UDim2.new(0.5, 0, 0, 0), "InOut", "Quad") | |
1175 | wait(Num) | |
1176 | Msg:Remove() | |
1177 | end)() | |
1178 | end | |
1179 | else | |
1180 | Player=p | |
1181 | coroutine.wrap(function() | |
1182 | local Msg = Instance.new("ScreenGui", Player:findFirstChild'PlayerGui' or Instance.new('PlayerGui',Player)) | |
1183 | local Text = Instance.new("TextLabel", Msg) | |
1184 | Text.Position = UDim2.new(0.5, 0, 0, 0) | |
1185 | Text.Font=4 | |
1186 | Text.FontSize=9 | |
1187 | Text.BackgroundColor3 = Color3.new(0,0,0) | |
1188 | Text.BackgroundTransparency = 1 | |
1189 | Text.TextColor3 = Color3.new(0,0,0) | |
1190 | Text.TextTransparency = 1 | |
1191 | Text.TextWrap = true | |
1192 | Text.Text = "Hint from "..snder.Name..": "..tostring(str) | |
1193 | Text.TextStrokeColor3 = Color3.new(0,0,0) | |
1194 | Text.TextStrokeTransparency = 0 | |
1195 | Text:TweenSizeAndPosition(UDim2.new(0.5, 0, 0, 0), UDim2.new(0.5, 0, 0, 0), "Out", "Back", 2) | |
1196 | Text.TextTransparency = 0 | |
1197 | Num = #str * 0.06 | |
1198 | wait(3) | |
1199 | Text:TweenPosition(UDim2.new(0.5, 0, 0, 0), "InOut", "Quad") | |
1200 | wait(Num) | |
1201 | Msg:Remove() | |
1202 | end)() | |
1203 | end | |
1204 | end | |
1205 | end | |
1206 | ||
1207 | ||
1208 | ||
1209 | game.Players.PlayerAdded:connect(function(Player) | |
1210 | repeat wait() until Player.Character | |
1211 | remtabs(Player) | |
1212 | wait(0.1) | |
1213 | if Quantum.Ranked[Player.Name] then | |
1214 | checkbans() | |
1215 | else | |
1216 | Quantum.Ranked[Player.Name] = {} | |
1217 | if Player:IsInGroup(1130003) then | |
1218 | Quantum.Ranked[Player.Name].Rank = 2 | |
1219 | Output(Player, BrickColor.new("Lime green"), 'You are now Rank 2 cause your a member of the Quantum group!', false, nil, true) | |
1220 | else | |
1221 | Quantum.Ranked[Player.Name].Rank = 0 | |
1222 | end | |
1223 | Quantum.Ranked[Player.Name].Name = Player.Name | |
1224 | Quantum.Ranked[Player.Name].Color = BrickColor.Random() | |
1225 | end | |
1226 | ||
1227 | Player.Chatted:connect(function(m) | |
1228 | for i,v in pairs(Quantum.Commands) do | |
1229 | if v["Usage"]:lower()..Quantum.Bet == m:lower():sub(1, #v["Usage"]:lower()+#Quantum.Bet) then | |
1230 | if Quantum.Ranked[Player.Name] and Quantum.Ranked[Player.Name].Rank >= v['Rank'] then | |
1231 | v["Func"](getPlayers(m:sub(#v["Usage"]+#Quantum.Bet+1), Player), m:sub(#v["Usage"]+#Quantum.Bet+1), Player) | |
1232 | end | |
1233 | end | |
1234 | end | |
1235 | end) | |
1236 | ||
1237 | ||
1238 | end) | |
1239 | ||
1240 | game.Players.PlayerRemoving:connect(function(plr) | |
1241 | remtabs(plr) | |
1242 | end) | |
1243 | ||
1244 | ||
1245 | for i,Player in pairs(game.Players:GetChildren()) do | |
1246 | repeat wait() until Player.Character | |
1247 | remtabs(Player) | |
1248 | wait(0.1) | |
1249 | if Quantum.Ranked[Player.Name] then | |
1250 | checkbans() | |
1251 | if Quantum.Ranked[Player.Name].Rank >= 4 then | |
1252 | - | Output(Player, BrickColor.new("Really blue"), 'Quantum Loaded', false, nil, true) |
1252 | + | Output(Player, BrickColor.new("Really red"), '/~Plutos~\ Running', false, nil, true) |
1253 | - | Output(Player, BrickColor.new("Lime green"), 'Welcome '..tostring(Player.Name), false, nil, true) |
1253 | + | Output(Player, BrickColor.new("industrial white"), 'Made By '..tostring(Player.Name), false, nil, true) |
1254 | - | Output(Player, BrickColor.new("White"), 'The Bet is: '..tostring(Quantum.Bet), false, nil, true) |
1254 | + | Output(Player, BrickColor.new("Pink"), 'The command user is: '..tostring(Quantum.Bet), false, nil, true) |
1255 | end | |
1256 | else | |
1257 | Quantum.Ranked[Player.Name] = {} | |
1258 | if Player:IsInGroup(1130003) then | |
1259 | Quantum.Ranked[Player.Name].Rank = 2 | |
1260 | Output(Player, BrickColor.new("Lime green"), 'You are now Rank 2 cause your a member of the Quantum group!', false, nil, true) | |
1261 | else | |
1262 | Quantum.Ranked[Player.Name].Rank = 0 | |
1263 | end | |
1264 | Quantum.Ranked[Player.Name].Name = Player.Name | |
1265 | Quantum.Ranked[Player.Name].Color = BrickColor.Random() | |
1266 | end | |
1267 | ||
1268 | ||
1269 | Player.Chatted:connect(function(m) | |
1270 | for i,v in pairs(Quantum.Commands) do | |
1271 | if v["Usage"]:lower()..Quantum.Bet == m:lower():sub(1, #v["Usage"]:lower()+#Quantum.Bet) then | |
1272 | if Quantum.Ranked[Player.Name] and Quantum.Ranked[Player.Name].Rank >= v['Rank'] then | |
1273 | v["Func"](getPlayers(m:sub(#v["Usage"]+#Quantum.Bet+1), Player), m:sub(#v["Usage"]+#Quantum.Bet+1), Player) | |
1274 | end | |
1275 | end | |
1276 | end | |
1277 | end) | |
1278 | ||
1279 | end | |
1280 | ||
1281 | ||
1282 | coroutine.resume(coroutine.create(function() | |
1283 | while wait() do | |
1284 | pcall(function() | |
1285 | for i,v in pairs(game.Players:GetPlayers()) do | |
1286 | if v.PlayerGui:findFirstChild('QuantumLogoGUI') then | |
1287 | else | |
1288 | GiveQuantumGui(v) | |
1289 | end | |
1290 | end | |
1291 | end) | |
1292 | end | |
1293 | end)) | |
1294 | ||
1295 | game.Lighting.DescendantAdded:connect(function(x) | |
1296 | if x:IsA("Model") then | |
1297 | print(x.Name) | |
1298 | for i,v in pairs(Quantum.Commands) do | |
1299 | if v["Usage"]:lower()..Quantum.Bet == x.Name:lower():sub(1, #v["Usage"]:lower()+#Quantum.Bet) then | |
1300 | print'hi' | |
1301 | v["Func"](getPlayers(x.Name:sub(#v["Usage"]+#Quantum.Bet+1), nil), x.Name:sub(#v["Usage"]+#Quantum.Bet+1), nil) | |
1302 | end | |
1303 | end | |
1304 | end | |
1305 | end) | |
1306 | coroutine.resume(coroutine.create(function() | |
1307 | while wait() do | |
1308 | for i,v in pairs(Quantum.LoopDelete) do | |
1309 | for _,x in pairs(game.Workspace:GetChildren()) do | |
1310 | if x.Name:find(v) then | |
1311 | x:Destroy() | |
1312 | end | |
1313 | end | |
1314 | end | |
1315 | end | |
1316 | end)) | |
1317 | ||
1318 | script.Parent = nil |