Advertisement
Guest User

Untitled

a guest
Mar 6th, 2015
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 62.62 KB | None | 0 0
  1. --[[
  2. This is a very secure script loader included in RyanDolan123's Admin Commands
  3.  
  4. Whenever a script or localscript is launched using this external script, it is hashed in SHA-1 and acts as a signature of the code
  5. Then both the hashed and raw versions of the admin script are passed onto this script where everything is verified.
  6. The script is also made undisableable just like the main admin script, and is also not allowed to restart to prevent the code from being modified
  7.  
  8. If either the signature or the code is tampered and does not match, the script will not execute the code.
  9.  
  10. I have not seen any other admin commands with this high level of security yet.
  11.  
  12.  
  13. If you can write up a CE Lua exploit which can breach this remotely with an unmodified version of the Admin Commands version 1.1 and above, I might want to offer you a reward (Likely robux) if you can release the source code to me
  14.  
  15.  
  16. The Lua5.1 SHA-1 encryption is provided by http://cube3d.de/
  17. Released under the MIT license
  18.  
  19. --]]
  20.  
  21. if script:FindFirstChild("DO_NOT_REENABLE") then
  22. return
  23. end
  24.  
  25.  
  26. wait()
  27.  
  28.  
  29. Spawn(function()
  30.  
  31. CodeSignCache = {[ [[
  32. local Player = game:GetService("Players").LocalPlayer
  33. local Mouse = Player:GetMouse()
  34. local Torso = Player.Character:WaitForChild("Torso")
  35. local Humanoid = Player.Character:WaitForChild("Humanoid")
  36. local Flying = true
  37. local Control = {f = 0, b = 0, l = 0, r = 0}
  38. local LastControl = {f = 0, b = 0, l = 0, r = 0}
  39. local MaxSpeed = 50
  40. local Speed = 0
  41. local Camera = Workspace.CurrentCamera
  42.  
  43. local FlySmoke = Instance.new("Smoke",Torso)
  44. FlySmoke.Name = "FlySmoke"
  45. FlySmoke.Opacity = 0.08
  46. FlySmoke.Size = 25
  47.  
  48. Instance.new("StringValue",script).Name = "DO_NOT_REENABLE"
  49.  
  50. script.Parent = Player:FindFirstChild("PlayerGui")
  51. script.Name = "ADMIN_FLY_SCRIPT"
  52.  
  53. function Fly()
  54. local Gyro = Instance.new("BodyGyro", Torso)
  55. Gyro.P = 9e4
  56. Gyro.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  57. Gyro.cframe = Torso.CFrame --why is cframe in lowercase for BodyGyros
  58.  
  59. local Velocity = Instance.new("BodyVelocity", Torso)
  60. Velocity.velocity = Vector3.new(0,0.1,0) --roblox why is velocity lowercase
  61. Velocity.maxForce = Vector3.new(9e9, 9e9, 9e9)
  62.  
  63. repeat
  64. wait()
  65.  
  66. Humanoid.PlatformStand = true
  67.  
  68. if Control.l + Control.r + Control.f + Control.b > 0 then
  69. FlySmoke.Enabled = true
  70. else
  71. FlySmoke.Enabled = false
  72. end
  73.  
  74. if Control.l + Control.r ~= 0 or Control.f + Control.b ~= 0 then
  75.  
  76. Speed = Speed+.5+(Speed/MaxSpeed)
  77.  
  78. if Speed > MaxSpeed then
  79. Speed = MaxSpeed
  80. end
  81. elseif not (Control.l + Control.r ~= 0 or Control.f + Control.b ~= 0) and Speed ~= 0 then
  82. Speed = Speed-1
  83. if Speed < 0 then
  84. Speed = 0
  85. end
  86. end
  87.  
  88. if (Control.l + Control.r) ~= 0 or (Control.f + Control.b) ~= 0 then
  89.  
  90. Velocity.velocity =
  91. ((Camera.CoordinateFrame.lookVector * (Control.f + Control.b)) +
  92. ((Camera.CoordinateFrame * CFrame.new(Control.l + Control.r,(Control.f + Control.b) * 0.2, 0).p) - --yuck
  93. Camera.CoordinateFrame.p))*Speed
  94.  
  95. LastControl = {f = Control.f, b = Control.b, l = Control.l, r = Control.r}
  96.  
  97. elseif (Control.l + Control.r) == 0 and (Control.f + Control.b) == 0 and Speed ~= 0 then
  98.  
  99. Velocity.velocity =
  100. ((Camera.CoordinateFrame.lookVector * (LastControl.f + LastControl.b)) +
  101. ((Camera.CoordinateFrame * CFrame.new(LastControl.l + LastControl.r, (LastControl.f + LastControl.b) * 0.2, 0).p) - --also yuck
  102. Camera.CoordinateFrame.p))*Speed
  103.  
  104. else
  105. Velocity.velocity = Vector3.new(0,0.1,0)
  106. end
  107.  
  108. Gyro.cframe = Camera.CoordinateFrame * CFrame.Angles(-math.rad((Control.f+Control.b)*50*Speed/MaxSpeed),0,0)
  109.  
  110. until not Flying or not script.Parent
  111.  
  112. Control = {f = 0, b = 0, l = 0, r = 0}
  113. LastControl = {f = 0, b = 0, l = 0, r = 0}
  114. Speed = 0
  115. Gyro:Destroy()
  116. Velocity:Destroy()
  117. Humanoid.PlatformStand = false
  118.  
  119. end
  120.  
  121. Mouse.KeyDown:connect(function(key)
  122. if key:lower() == "e" then
  123. Flying = not Flying
  124. if Flying then
  125. Fly()
  126. end
  127. elseif key:lower() == "w" then
  128. Control.f = 1
  129. elseif key:lower() == "s" then
  130. Control.b = -1
  131. elseif key:lower() == "a" then
  132. Control.l = -1
  133. elseif key:lower() == "d" then
  134. Control.r = 1
  135. end
  136. end)
  137.  
  138. Mouse.KeyUp:connect(function(key)
  139. if key:lower() == "w" then
  140. Control.f = 0
  141. elseif key:lower() == "s" then
  142. Control.b = 0
  143. elseif key:lower() == "a" then
  144. Control.l = 0
  145. elseif key:lower() == "d" then
  146. Control.r = 0
  147. end
  148. end)
  149.  
  150. Fly()]]] = "bc194bb513ac52f25311f39279e7b6859c1bc754";
  151.  
  152. [ [[
  153. local Player = game.Players.LocalPlayer
  154. local Mouse = Player:GetMouse()
  155. local Character = Player.Character
  156. local Humanoid = Character:FindFirstChild("Humanoid")
  157. local Torso = Character:WaitForChild("Torso")
  158. local Camera = Workspace.CurrentCamera
  159. local Move = {W = 0, S = 0, A = 0, D = 0}
  160. local Speed = 2
  161.  
  162. Instance.new("StringValue",script).Name = "DO_NOT_REENABLE"
  163.  
  164. script.Parent = Player:FindFirstChild("PlayerGui")
  165. script.Name = "ADMIN_NOCLIP_SCRIPT"
  166.  
  167. Mouse.KeyDown:connect(function(key)
  168. if key:lower() == "w" then
  169. Move.W = 1
  170. elseif key:lower() == "s" then
  171. Move.S = 1
  172. elseif key:lower() == "a" then
  173. Move.A = 1
  174. elseif key:lower() == "d" then
  175. Move.D = 1
  176. elseif key:lower() == "q" then
  177. Speed = Speed + 1
  178. elseif key:lower() == "e" then
  179. Speed = Speed - 1
  180. end
  181. end)
  182.  
  183. Mouse.KeyUp:connect(function(key)
  184. if key:lower() == "w" then
  185. Move.W = 0
  186. elseif key:lower() == "s" then
  187. Move.S = 0
  188. elseif key:lower() == "a" then
  189. Move.A = 0
  190. elseif key:lower() == "d" then
  191. Move.D = 0
  192. end
  193. end)
  194.  
  195. Torso.Anchored = true
  196. Humanoid.PlatformStand = true
  197.  
  198. local eventt = Humanoid.Changed:connect(function()
  199. Humanoid.PlatformStand = true
  200. end)
  201.  
  202. local event = game:GetService("RunService").RenderStepped:connect(function()
  203. Torso.CFrame = CFrame.new(
  204. Torso.Position,
  205. Camera.CoordinateFrame.p) *
  206. CFrame.Angles(0, math.rad(180), 0) *
  207. CFrame.new((Move.D - Move.A) *
  208. Speed,
  209. 0,
  210. (Move.S - Move.W) *
  211. Speed
  212. )
  213. end)
  214.  
  215. repeat wait(0.25) until not script.Parent
  216.  
  217. event:disconnect()
  218. eventt:disconnect()]]] = "b7d0deea7bfdf2cc3f3be7e6c56f837229231258";
  219. }
  220.  
  221.  
  222. Workspace = game:GetService("Workspace")
  223. Players = game:GetService("Players")
  224. Lighting = game:GetService("Lighting")
  225. ReplicatedStorage = game:GetService("ReplicatedStorage")
  226. ServerStorage = game:GetService("ServerStorage")
  227. ServerScriptStorage = game:GetService("ServerScriptService")
  228. StarterGui = game:GetService("StarterGui")
  229. StarterPack = game:GetService("StarterPack")
  230. Debris = game:GetService("Debris")
  231. Teams = game:GetService("Teams")
  232. TeleportService = game:GetService("TeleportService")
  233. MarketplaceService = game:GetService("MarketplaceService")
  234.  
  235. tweentime = 0.5
  236. tweenstyle = "Quart"
  237.  
  238. if not script:IsA("LocalScript") then
  239. script.Parent = nil
  240. end
  241.  
  242. function TweenBackgroundTransparency(element,starta,enda,length)
  243. coroutine.resume(coroutine.create(function()
  244. local startTime = time()
  245. local lastTrans = element.BackgroundTransparency
  246. while time() - startTime < length do
  247. if element.BackgroundTransparency == lastTrans then
  248. element.BackgroundTransparency = ((enda - starta) * ((time() - startTime)/length)) + starta
  249. else
  250. break
  251. end
  252. lastTrans = element.BackgroundTransparency
  253. wait(.01)
  254. end
  255. element.BackgroundTransparency = enda
  256. return true
  257. end))
  258. end
  259.  
  260. function TweenTextTransparency(element,starta,enda,length)
  261. coroutine.resume(coroutine.create(function()
  262. local startTime = time()
  263. local lastTextTrans = element.TextTransparency
  264. local lastTextStrokeTrans = element.TextStrokeTransparency
  265.  
  266. while time() - startTime < length do
  267. if element.TextTransparency == lastTextTrans and element.TextStrokeTransparency == lastTextStrokeTrans then
  268. element.TextTransparency = ((enda - starta) * ((time() - startTime)/length)) + starta
  269. element.TextStrokeTransparency = 0.75 + (element.TextTransparency * 0.25)
  270. else
  271. break
  272. end
  273. lastTextTrans = element.TextTransparency
  274. lastTextStrokeTrans = element.TextStrokeTransparency
  275. wait(.01)
  276. end
  277. element.TextTransparency = enda
  278. element.TextStrokeTransparency = 0.75 + (element.TextTransparency * 0.25)
  279. return true
  280. end))
  281. end
  282.  
  283. sha1 = {}
  284.  
  285. local cfg_caching = false
  286.  
  287. local floor,modf = math.floor,math.modf
  288. local char,format,rep = string.char,string.format,string.rep
  289.  
  290. local function bytes_to_w32 (a,b,c,d) return a*0x1000000+b*0x10000+c*0x100+d end
  291.  
  292. local function w32_to_bytes (i)
  293. return floor(i/0x1000000)%0x100,floor(i/0x10000)%0x100,floor(i/0x100)%0x100,i%0x100
  294. end
  295.  
  296. local function w32_rot (bits,a)
  297. local b2 = 2^(32-bits)
  298. local a,b = modf(a/b2)
  299. return a+b*b2*(2^(bits))
  300. end
  301.  
  302. local function cache2arg (fn)
  303. if not cfg_caching then return fn end
  304. local lut = {}
  305. for i=0,0xffff do
  306. local a,b = floor(i/0x100),i%0x100
  307. lut[i] = fn(a,b)
  308. end
  309. return function (a,b)
  310. return lut[a*0x100+b]
  311. end
  312. end
  313.  
  314. local function byte_to_bits (b)
  315. local b = function (n)
  316. local b = floor(b/n)
  317. return b%2==1
  318. end
  319. return b(1),b(2),b(4),b(8),b(16),b(32),b(64),b(128)
  320. end
  321.  
  322. local function bits_to_byte (a,b,c,d,e,f,g,h)
  323. local function n(b,x) return b and x or 0 end
  324. return n(a,1)+n(b,2)+n(c,4)+n(d,8)+n(e,16)+n(f,32)+n(g,64)+n(h,128)
  325. end
  326.  
  327. local function bits_to_string (a,b,c,d,e,f,g,h)
  328. local function x(b) return b and "1" or "0" end
  329. return ("%s%s%s%s %s%s%s%s"):format(x(a),x(b),x(c),x(d),x(e),x(f),x(g),x(h))
  330. end
  331.  
  332. local function byte_to_bit_string (b)
  333. return bits_to_string(byte_to_bits(b))
  334. end
  335.  
  336. local function w32_to_bit_string(a)
  337. if type(a) == "string" then return a end
  338. local aa,ab,ac,ad = w32_to_bytes(a)
  339. local s = byte_to_bit_string
  340. return ("%s %s %s %s"):format(s(aa):reverse(),s(ab):reverse(),s(ac):reverse(),s(ad):reverse()):reverse()
  341. end
  342.  
  343. local band = cache2arg (function(a,b)
  344. local A,B,C,D,E,F,G,H = byte_to_bits(b)
  345. local a,b,c,d,e,f,g,h = byte_to_bits(a)
  346. return bits_to_byte(
  347. A and a, B and b, C and c, D and d,
  348. E and e, F and f, G and g, H and h)
  349. end)
  350.  
  351. local bor = cache2arg(function(a,b)
  352. local A,B,C,D,E,F,G,H = byte_to_bits(b)
  353. local a,b,c,d,e,f,g,h = byte_to_bits(a)
  354. return bits_to_byte(
  355. A or a, B or b, C or c, D or d,
  356. E or e, F or f, G or g, H or h)
  357. end)
  358.  
  359. local bxor = cache2arg(function(a,b)
  360. local A,B,C,D,E,F,G,H = byte_to_bits(b)
  361. local a,b,c,d,e,f,g,h = byte_to_bits(a)
  362. return bits_to_byte(
  363. A ~= a, B ~= b, C ~= c, D ~= d,
  364. E ~= e, F ~= f, G ~= g, H ~= h)
  365. end)
  366.  
  367. local function bnot (x)
  368. return 255-(x % 256)
  369. end
  370.  
  371. local function w32_comb(fn)
  372. return function (a,b)
  373. local aa,ab,ac,ad = w32_to_bytes(a)
  374. local ba,bb,bc,bd = w32_to_bytes(b)
  375. return bytes_to_w32(fn(aa,ba),fn(ab,bb),fn(ac,bc),fn(ad,bd))
  376. end
  377. end
  378.  
  379. local w32_and = w32_comb(band)
  380. local w32_xor = w32_comb(bxor)
  381. local w32_or = w32_comb(bor)
  382.  
  383. local function w32_xor_n (a,...)
  384. local aa,ab,ac,ad = w32_to_bytes(a)
  385. for i=1,select('#',...) do
  386. local ba,bb,bc,bd = w32_to_bytes(select(i,...))
  387. aa,ab,ac,ad = bxor(aa,ba),bxor(ab,bb),bxor(ac,bc),bxor(ad,bd)
  388. end
  389. return bytes_to_w32(aa,ab,ac,ad)
  390. end
  391.  
  392. local function w32_or3 (a,b,c)
  393. local aa,ab,ac,ad = w32_to_bytes(a)
  394. local ba,bb,bc,bd = w32_to_bytes(b)
  395. local ca,cb,cc,cd = w32_to_bytes(c)
  396. return bytes_to_w32(
  397. bor(aa,bor(ba,ca)), bor(ab,bor(bb,cb)), bor(ac,bor(bc,cc)), bor(ad,bor(bd,cd))
  398. )
  399. end
  400.  
  401. local function w32_not (a)
  402. return 4294967295-(a % 4294967296)
  403. end
  404.  
  405. local function w32_add (a,b) return (a+b) % 4294967296 end
  406.  
  407. local function w32_add_n (a,...)
  408. for i=1,select('#',...) do
  409. a = (a+select(i,...)) % 4294967296
  410. end
  411. return a
  412. end
  413.  
  414. local function w32_to_hexstring (w) return format("%08x",w) end
  415.  
  416. function sha1.hex(msg)
  417. local H0,H1,H2,H3,H4 = 0x67452301,0xEFCDAB89,0x98BADCFE,0x10325476,0xC3D2E1F0
  418. local msg_len_in_bits = #msg * 8
  419.  
  420. local first_append = char(0x80) -- append a '1' bit plus seven '0' bits
  421.  
  422. local non_zero_message_bytes = #msg +1 +8 -- the +1 is the appended bit 1, the +8 are for the final appended length
  423. local current_mod = non_zero_message_bytes % 64
  424. local second_append = current_mod>0 and rep(char(0), 64 - current_mod) or ""
  425.  
  426. -- now to append the length as a 64-bit number.
  427. local B1, R1 = modf(msg_len_in_bits / 0x01000000)
  428. local B2, R2 = modf( 0x01000000 * R1 / 0x00010000)
  429. local B3, R3 = modf( 0x00010000 * R2 / 0x00000100)
  430. local B4 = 0x00000100 * R3
  431.  
  432. local L64 = char( 0) .. char( 0) .. char( 0) .. char( 0) -- high 32 bits
  433. .. char(B1) .. char(B2) .. char(B3) .. char(B4) -- low 32 bits
  434.  
  435. msg = msg .. first_append .. second_append .. L64
  436.  
  437. assert(#msg % 64 == 0)
  438.  
  439. local chunks = #msg / 64
  440.  
  441. local W = { }
  442. local start, A, B, C, D, E, f, K, TEMP
  443. local chunk = 0
  444.  
  445. while chunk < chunks do
  446. --
  447. -- break chunk up into W[0] through W[15]
  448. --
  449. start,chunk = chunk * 64 + 1,chunk + 1
  450.  
  451. for t = 0, 15 do
  452. W[t] = bytes_to_w32(msg:byte(start, start + 3))
  453. start = start + 4
  454. end
  455.  
  456. --
  457. -- build W[16] through W[79]
  458. --
  459. for t = 16, 79 do
  460. -- For t = 16 to 79 let Wt = S1(Wt-3 XOR Wt-8 XOR Wt-14 XOR Wt-16).
  461. W[t] = w32_rot(1, w32_xor_n(W[t-3], W[t-8], W[t-14], W[t-16]))
  462. end
  463.  
  464. A,B,C,D,E = H0,H1,H2,H3,H4
  465.  
  466. for t = 0, 79 do
  467. if t <= 19 then
  468. -- (B AND C) OR ((NOT B) AND D)
  469. f = w32_or(w32_and(B, C), w32_and(w32_not(B), D))
  470. K = 0x5A827999
  471. elseif t <= 39 then
  472. -- B XOR C XOR D
  473. f = w32_xor_n(B, C, D)
  474. K = 0x6ED9EBA1
  475. elseif t <= 59 then
  476. -- (B AND C) OR (B AND D) OR (C AND D
  477. f = w32_or3(w32_and(B, C), w32_and(B, D), w32_and(C, D))
  478. K = 0x8F1BBCDC
  479. else
  480. -- B XOR C XOR D
  481. f = w32_xor_n(B, C, D)
  482. K = 0xCA62C1D6
  483. end
  484.  
  485. -- TEMP = S5(A) + ft(B,C,D) + E + Wt + Kt;
  486. A,B,C,D,E = w32_add_n(w32_rot(5, A), f, E, W[t], K),
  487. A, w32_rot(30, B), C, D
  488. end
  489. -- Let H0 = H0 + A, H1 = H1 + B, H2 = H2 + C, H3 = H3 + D, H4 = H4 + E.
  490. H0,H1,H2,H3,H4 = w32_add(H0, A),w32_add(H1, B),w32_add(H2, C),w32_add(H3, D),w32_add(H4, E)
  491. end
  492. local f = w32_to_hexstring
  493. return f(H0) .. f(H1) .. f(H2) .. f(H3) .. f(H4)
  494. end
  495.  
  496. local function hex_to_binary(hex)
  497. return hex:gsub('..', function(hexval)
  498. return string.char(tonumber(hexval, 16))
  499. end)
  500. end
  501.  
  502. function sha1.bin(msg)
  503. return hex_to_binary(sha1.hex(msg))
  504. end
  505.  
  506. local xor_with_0x5c = {}
  507. local xor_with_0x36 = {}
  508. -- building the lookuptables ahead of time (instead of littering the source code
  509. -- with precalculated values)
  510. for i=0,0xff do
  511. xor_with_0x5c[char(i)] = char(bxor(i,0x5c))
  512. xor_with_0x36[char(i)] = char(bxor(i,0x36))
  513. end
  514.  
  515. local blocksize = 64 -- 512 bits
  516.  
  517. function sha1.hmacHex(key, text)
  518. assert(type(key) == 'string', "key passed to hmacHex should be a string")
  519. assert(type(text) == 'string', "text passed to hmacHex should be a string")
  520.  
  521. if #key > blocksize then
  522. key = sha1.bin(key)
  523. end
  524.  
  525. local key_xord_with_0x36 = key:gsub('.', xor_with_0x36) .. string.rep(string.char(0x36), blocksize - #key)
  526. local key_xord_with_0x5c = key:gsub('.', xor_with_0x5c) .. string.rep(string.char(0x5c), blocksize - #key)
  527.  
  528. return sha1.hex(key_xord_with_0x5c .. sha1.bin(key_xord_with_0x36 .. text))
  529. end
  530.  
  531. function sha1.hmacBin(key, text)
  532. return hex_to_binary(sha1.hmacHex(key, text))
  533. end
  534.  
  535.  
  536.  
  537. function MakeMsgGui(player)
  538. if player == ROOT or player == "ROOT" then
  539. return true
  540. end
  541. local Gui = player:WaitForChild("PlayerGui"):FindFirstChild("Admi")
  542. if not Gui or not Gui:IsA("ScreenGui") then
  543. Gui = MakeAdmiGui(player:WaitForChild("PlayerGui"))
  544. end
  545. local MsgGui = Instance.new("Frame", Gui)
  546. MsgGui.Name = "Msg"
  547. MsgGui.Position = UDim2.new(0.5, -250, 0.5, -125)
  548. MsgGui.Size = UDim2.new(0, 500, 0, 300)
  549. MsgGui.BackgroundColor3 = Color3.new(0, 0, 0)
  550. MsgGui.BackgroundTransparency = 0.45
  551. MsgGui.BorderSizePixel = 0
  552. MsgGui.ZIndex = 10
  553.  
  554. local Msg = Instance.new("TextLabel", MsgGui)
  555. Msg.Name = "Msg"
  556. Msg.Position = UDim2.new(0, 0, 0.2, 0)
  557. Msg.Size = UDim2.new(1, 0, 0.8, 0)
  558. Msg.BackgroundColor3 = Color3.new(0.208, 0.208, 0.208)
  559. Msg.BackgroundTransparency = 1
  560. Msg.BorderSizePixel = 0
  561. Msg.Text = "Message"
  562. Msg.Font = "Arial"
  563. Msg.FontSize = "Size18"
  564. Msg.TextStrokeTransparency = 0.7
  565. Msg.TextWrapped = true
  566. Msg.TextYAlignment = "Top"
  567. Msg.TextColor3 = Color3.new(1, 1, 1)
  568. Msg.ZIndex = 10
  569.  
  570. local Title = Instance.new("TextLabel", MsgGui)
  571. Title.Name = "Title"
  572. Title.Position = UDim2.new(0, 0, 0.08, 0)
  573. Title.Size = UDim2.new(1, 0, 0.125, 0)
  574. Title.BackgroundTransparency = 1
  575. Title.BorderSizePixel = 0
  576. Title.Text = "Message"
  577. Title.Font = "ArialBold"
  578. Title.FontSize = "Size24"
  579. Title.TextScaled = true
  580. Title.TextStrokeTransparency = 0.7
  581. Title.TextWrapped = true
  582. Title.TextYAlignment = "Top"
  583. Title.TextColor3 = Color3.new(1, 1, 1)
  584. Title.ZIndex = 10
  585.  
  586. return Msg
  587. end
  588.  
  589. function DisplayScrollFrame(player,title,text)
  590. if player == ROOT or player == "ROOT" then
  591. return true
  592. end
  593. local Gui = player:WaitForChild("PlayerGui"):FindFirstChild("Admi")
  594. if not Gui or not Gui:IsA("ScreenGui") then
  595. Gui = MakeAdmiGui(player:WaitForChild("PlayerGui"))
  596. end
  597. if Gui:FindFirstChild("ScrollGui") then
  598. Gui:FindFirstChild("ScrollGui"):Destroy()
  599. end
  600.  
  601. local title = title
  602. local text = text
  603.  
  604. if title == nil then
  605. title = "Message"
  606. end
  607. if text == nil then
  608. text = title
  609. title = "Message"
  610. end
  611.  
  612. local ReenableMsg = (Gui:FindFirstChild("Msg") and Gui:FindFirstChild("Msg").Visible) or false
  613.  
  614. local ScrollGui = Instance.new("Frame", Gui)
  615. ScrollGui.Name = "ScrollGui"
  616. ScrollGui.Position = UDim2.new(0.5, -125, 0.5, -125)
  617. ScrollGui.Size = UDim2.new(0, 250, 0, 250)
  618. ScrollGui.BackgroundColor3 = Color3.new(0, 0, 0)
  619. ScrollGui.BackgroundTransparency = 0.44999998807907
  620. ScrollGui.BorderSizePixel = 0
  621. ScrollGui.ZIndex = 9
  622. ScrollGui.ClipsDescendants = true
  623. ScrollGui.Visible = false
  624.  
  625. local ScrollingFrameCutter = Instance.new("Frame", ScrollGui)
  626. ScrollingFrameCutter.Name = "ScrollingFrameCutter"
  627. ScrollingFrameCutter.Position = UDim2.new(0.5, -250, 0.64999997615814, -250)
  628. ScrollingFrameCutter.Size = UDim2.new(1, 0, 0.85000002384186, 0)
  629. ScrollingFrameCutter.BackgroundColor3 = Color3.new(0, 0, 0)
  630. ScrollingFrameCutter.BackgroundTransparency = 1
  631. ScrollingFrameCutter.BorderSizePixel = 0
  632. ScrollingFrameCutter.ZIndex = 9
  633. ScrollingFrameCutter.ClipsDescendants = true
  634.  
  635. local MsgContainer = Instance.new("TextLabel", ScrollingFrameCutter)
  636. MsgContainer.Name = "MsgContainer"
  637. MsgContainer.Size = UDim2.new(1, 0, 999, 0)
  638. MsgContainer.BackgroundColor3 = Color3.new(0.20784315466881, 0.20784315466881, 0.20784315466881)
  639. MsgContainer.BackgroundTransparency = 1
  640. MsgContainer.BorderSizePixel = 0
  641. MsgContainer.Text = ""
  642. MsgContainer.Font = Enum.Font.Arial
  643. MsgContainer.FontSize = Enum.FontSize.Size18
  644. MsgContainer.TextTransparency = 1
  645. MsgContainer.TextWrapped = true
  646. MsgContainer.TextYAlignment = Enum.TextYAlignment.Top
  647. MsgContainer.TextXAlignment = Enum.TextXAlignment.Left
  648. MsgContainer.TextColor3 = Color3.new(1, 1, 1)
  649. MsgContainer.ZIndex = 9
  650.  
  651. local MsgStrips = {}
  652.  
  653. for a in text:gmatch("[^\n]+") do
  654. local Msg = Instance.new("TextLabel", MsgContainer)
  655. Msg.Name = "Msg"..(#MsgStrips + 1)
  656. Msg.Size = UDim2.new(1, 0, 0, 20)
  657. Msg.Position = UDim2.new(0,0,0,#MsgStrips * 18)
  658. Msg.BackgroundColor3 = Color3.new(0.20784315466881, 0.20784315466881, 0.20784315466881)
  659. Msg.BackgroundTransparency = 1
  660. Msg.BorderSizePixel = 0
  661. Msg.Text = a
  662. Msg.Font = Enum.Font.Arial
  663. Msg.FontSize = Enum.FontSize.Size18
  664. Msg.TextTransparency = 1
  665. Msg.TextWrapped = true
  666. Msg.TextYAlignment = Enum.TextYAlignment.Center
  667. Msg.TextXAlignment = Enum.TextXAlignment.Left
  668. Msg.TextColor3 = Color3.new(1, 1, 1)
  669. Msg.ZIndex = 9
  670. table.insert(MsgStrips,Msg)
  671. end
  672.  
  673. local Up = Instance.new("TextButton", ScrollGui)
  674. Up.Name = "Up"
  675. Up.Position = UDim2.new(0.94999998807907, 0, 0, 0)
  676. Up.Size = UDim2.new(0.050000000745058, 0, 0.050000000745058, 0)
  677. Up.BackgroundColor3 = Color3.new(1, 1, 1)
  678. Up.BackgroundTransparency = 0.85000002384186
  679. Up.Text = "^"
  680. Up.Font = Enum.Font.ArialBold
  681. Up.FontSize = Enum.FontSize.Size36
  682. Up.TextStrokeTransparency = 0.75
  683. Up.TextYAlignment = Enum.TextYAlignment.Top
  684. Up.TextColor3 = Color3.new(1, 1, 1)
  685. Up.ZIndex = 10
  686. Up.MouseButton1Click:connect(function()
  687. if MsgContainer.Parent == nil then
  688. return
  689. end
  690. local asds = MsgContainer.Position.Y.Scale+0.5
  691. if asds > 0 then
  692. asds = 0
  693. end
  694. MsgContainer:TweenPosition(UDim2.new(0,0,asds,0),nil,"Quint",tweentime*0.75,true)
  695. end)
  696.  
  697. local Down = Instance.new("TextButton", ScrollGui)
  698. Down.Name = "Down"
  699. Down.Position = UDim2.new(0.94999998807907, 0, 0.94999998807907, 0)
  700. Down.Size = UDim2.new(0.050000000745058, 0, 0.050000000745058, 0)
  701. Down.BackgroundColor3 = Color3.new(1, 1, 1)
  702. Down.BackgroundTransparency = 0.85000002384186
  703. Down.Text = "v"
  704. Down.Font = Enum.Font.ArialBold
  705. Down.FontSize = Enum.FontSize.Size24
  706. Down.TextStrokeTransparency = 0.75
  707. Down.TextColor3 = Color3.new(1, 1, 1)
  708. Down.ZIndex = 10
  709. Down.MouseButton1Click:connect(function()
  710. if MsgContainer.Parent == nil then
  711. return
  712. end
  713. MsgContainer:TweenPosition(UDim2.new(0,0,MsgContainer.Position.Y.Scale-0.5,0),nil,"Quint",tweentime*0.75,true)
  714. end)
  715.  
  716. local Title = Instance.new("TextLabel", ScrollGui)
  717. Title.Name = "Title"
  718. Title.Position = UDim2.new(0, 0, 0.025000000372529, 0)
  719. Title.Size = UDim2.new(1, 0, 0.10000000149012, 0)
  720. Title.BackgroundTransparency = 1
  721. Title.BorderSizePixel = 0
  722. Title.Text = title
  723. Title.Font = Enum.Font.ArialBold
  724. Title.FontSize = Enum.FontSize.Size24
  725. Title.TextScaled = true
  726. Title.TextWrapped = true
  727. Title.TextYAlignment = Enum.TextYAlignment.Top
  728. Title.TextColor3 = Color3.new(1, 1, 1)
  729. Title.ZIndex = 10
  730.  
  731. local Close = Instance.new("TextButton", ScrollGui)
  732. Close.Name = "Close"
  733. Close.Position = UDim2.new(0, 0, 0, 0)
  734. Close.Size = UDim2.new(0.050000000745058, 0, 0.050000000745058, 0)
  735. Close.BackgroundColor3 = Color3.new(1, 1, 1)
  736. Close.BackgroundTransparency = 0.85000002384186
  737. Close.Text = "X"
  738. Close.Font = Enum.Font.ArialBold
  739. Close.FontSize = Enum.FontSize.Size24
  740. Close.TextStrokeTransparency = 0.75
  741. Close.TextYAlignment = Enum.TextYAlignment.Top
  742. Close.TextColor3 = Color3.new(1, 1, 1)
  743. Close.ZIndex = 10
  744.  
  745. Close.MouseButton1Click:connect(function()
  746. if MsgContainer == nil or MsgContainer.Parent == nil then
  747. return
  748. end
  749. ScrollGui:TweenSizeAndPosition(UDim2.new(0,250,0,250),UDim2.new(0.5,-125,0.5,-125),nil,"Quint",tweentime,true)
  750. TweenBackgroundTransparency(ScrollGui,0.45,1,tweentime*0.4)
  751. TweenBackgroundTransparency(Up,0.85,1,tweentime*0.4)
  752. TweenBackgroundTransparency(Down,0.85,1,tweentime*0.4)
  753. TweenBackgroundTransparency(Close,0.85,1,tweentime*0.4)
  754.  
  755. TweenTextTransparency(Up,0,1,tweentime*0.35)
  756. TweenTextTransparency(Down,0,1,tweentime*0.35)
  757. TweenTextTransparency(Close,0,1,tweentime*0.35)
  758.  
  759. TweenTextTransparency(Title,0,1,tweentime*0.35)
  760.  
  761. for _,i in pairs(MsgStrips) do
  762. TweenTextTransparency(i,0,1,tweentime*0.35)
  763. end
  764.  
  765. wait(tweentime)
  766. ScrollGui.Visible = false
  767. Gui:FindFirstChild("Msg").Visible = ReenableMsg
  768. end)
  769.  
  770. ScrollGui:TweenSizeAndPosition(UDim2.new(0,500,0,500),UDim2.new(0.5,-250,0.5,-250),nil,"Quint",tweentime,true)
  771. TweenBackgroundTransparency(ScrollGui,1,0.45,tweentime*0.45)
  772. TweenBackgroundTransparency(Up,1,0.85,tweentime*0.5)
  773. TweenBackgroundTransparency(Down,1,0.85,tweentime*0.5)
  774. TweenBackgroundTransparency(Close,1,0.85,tweentime*0.5)
  775.  
  776. TweenTextTransparency(Up,1,0,tweentime*0.6)
  777. TweenTextTransparency(Down,1,0,tweentime*0.6)
  778. TweenTextTransparency(Close,1,0,tweentime*0.6)
  779.  
  780. TweenTextTransparency(Title,1,0,tweentime*0.6)
  781.  
  782. for _,i in pairs(MsgStrips) do
  783. TweenTextTransparency(i,1,0,tweentime*0.6)
  784. end
  785.  
  786. ScrollGui.Visible = true
  787.  
  788. return ScrollGui
  789. end
  790.  
  791.  
  792. function DisplayMessage(player,title,text,displaytime)
  793. if player == ROOT or player == "ROOT" or player == nil then
  794. return
  795. end
  796. Spawn(function()
  797. local text,title = text,title
  798. local pgui = player:FindFirstChild("PlayerGui")
  799. if not pgui then
  800. for _,i in pairs(player:GetChildren()) do
  801. if i:IsA("PlayerGui") then
  802. pgui = i
  803. end
  804. end
  805. end
  806. if not pgui:FindFirstChild("Admi") or not pgui:FindFirstChild("Admi"):FindFirstChild("Msg") then
  807. MakeMsgGui(player)
  808. end
  809. --[[if not pgui:FindFirstChild("Admi"):IsA("ScreenGui") or not message:IsA("Frame") or not message.Msg:IsA("TextLabel") or not message.Title:IsA("TextLabel") then
  810. MakeMsgGui(player)
  811. end]]
  812. local message = player:WaitForChild("PlayerGui"):FindFirstChild("Admi"):FindFirstChild("Msg")
  813. if title == nil then
  814. title = "Message"
  815. end
  816. if text == nil then
  817. text = title
  818. title = "Message"
  819. end
  820. message.Title.Text = "[ Content Deleted ]"
  821. message.Msg.Text = "[ Content Deleted ]"
  822. message.Title.Text = tostring(title)
  823. message.Msg.Text = tostring(text)
  824. message.Position = UDim2.new(0.5,-125,0.5,-75)
  825. message.Size = UDim2.new(0,250,0,150)
  826. TweenTextTransparency(message.Title,1,0,tweentime*0.65)
  827. TweenTextTransparency(message.Msg,1,0,tweentime*0.65)
  828. TweenBackgroundTransparency(message,1,0.45,tweentime*0.5)
  829. wait()
  830. message:TweenSizeAndPosition(UDim2.new(0,500,0,300),UDim2.new(0.5,-250,0.5,-150),nil,"Quint",tweentime,true,function()end)
  831. message.Visible = true
  832. wait(tweentime)
  833. if displaytime ~= nil then
  834. Delay(displaytime,function()if message.Msg.Text == tostring(text)then DismissMessage(player)end end)
  835. end
  836. end)
  837. end
  838.  
  839. function DisplayMessageAll(title,text,displaytime)
  840. for _,i in pairs(Players:GetPlayers()) do
  841. DisplayMessage(i,title,text,displaytime)
  842. end
  843. end
  844.  
  845. function DismissMessageAll()
  846. for _,i in pairs(Players:GetPlayers()) do
  847. DismissMessage(i)
  848. end
  849. end
  850.  
  851. function DismissMessage(player)
  852. if player == ROOT or player == "ROOT" then
  853. return
  854. end
  855. if not player:WaitForChild("PlayerGui"):FindFirstChild("Admi") or not player:WaitForChild("PlayerGui"):FindFirstChild("Admi"):FindFirstChild("Msg") then
  856. MakeMsgGui(player)
  857. end
  858. local message = player:WaitForChild("PlayerGui"):FindFirstChild("Admi"):FindFirstChild("Msg")
  859. TweenBackgroundTransparency(message,0.45,1,tweentime*0.5)
  860. TweenTextTransparency(message.Title,0,1,tweentime*0.22)
  861. TweenTextTransparency(message.Msg,0,1,tweentime*0.22)
  862. message:TweenSizeAndPosition(UDim2.new(0,0,0,0),--[[UDim2.new(0,250,0,150),UDim2.new(0.5,-125,0.5,-75)]]UDim2.new(0.5,0,0.5,0),nil,"Quint",tweentime*2.5,true,function()message.Visible = false end)
  863. end
  864.  
  865. function MakeAdmiGui(parent)
  866. if parent == "ROOT" or parent == ROOT then
  867. return
  868. end
  869. local Gui = Instance.new("ScreenGui",parent)
  870. Gui.Name = "Admi"
  871. return Gui
  872. end
  873.  
  874. function MakeTellGui(parent)
  875. if parent == "ROOT" or parent == ROOT then
  876. return
  877. end
  878. local Gui = parent:FindFirstChild("Admi")
  879. if not Gui then
  880. Gui = MakeAdmiGui(parent)
  881. end
  882. local Bar = Instance.new("TextLabel",Gui)
  883. Bar.Name = "Message"
  884. Bar.BackgroundColor3 = Color3.new(0,0,0)
  885. Bar.BackgroundTransparency = 0.35
  886. Bar.BorderSizePixel = 0
  887. Bar.Font = "ArialBold"
  888. Bar.FontSize = "Size18"
  889. Bar.Text = "Message"
  890. Bar.TextStrokeTransparency = 0.5
  891. Bar.TextColor3 = Color3.new(1,1,1)
  892. Bar.Size = UDim2.new(1,0,0,30)
  893. Bar.Position = UDim2.new(0,0,0,-30)
  894. return Gui
  895. end
  896.  
  897. function Tell(player,msg,length)
  898. if player == "ROOT" or player == ROOT then
  899. return
  900. end
  901. local length = length
  902. if length == nil then
  903. length = 3
  904. end
  905. local PlayerGui = player:WaitForChild("PlayerGui")
  906. if not PlayerGui:FindFirstChild("Admi") or not PlayerGui:FindFirstChild("Admi"):FindFirstChild("Message") then
  907. MakeTellGui(PlayerGui)
  908. end
  909. PlayerGui:FindFirstChild("Admi"):FindFirstChild("Message").Text = msg
  910. PlayerGui:FindFirstChild("Admi"):FindFirstChild("Message").Position = UDim2.new(0,0,0,-30)
  911. PlayerGui:FindFirstChild("Admi"):FindFirstChild("Message"):TweenPosition(UDim2.new(0,0,0,0),nil,tweenstyle,tweentime,true)
  912. Delay(length,function()
  913. if PlayerGui:FindFirstChild("Admi"):FindFirstChild("Message").Text == msg then
  914. PlayerGui:FindFirstChild("Admi"):FindFirstChild("Message"):TweenPosition(UDim2.new(0,0,0,-30),nil,tweenstyle,tweentime,true)
  915. end
  916. end)
  917. end
  918.  
  919. function TellAll(msg,length)
  920. for _,i in pairs(Players:GetPlayers()) do
  921. Tell(i,msg,length)
  922. end
  923. end
  924.  
  925. function TellAdmins(msg,length)
  926. for _,i in pairs(Players:GetPlayers()) do
  927. if Permissions[i.Name] and Permissions[i.Name] > 0 then
  928. Tell(i,msg,length)
  929. end
  930. end
  931. end
  932.  
  933. rawunpack = unpack
  934.  
  935. function unpack(oldtab)
  936. assert(oldtab,"u wot m8")
  937. local new = ""
  938. local tab = {}
  939. for i = 1, #oldtab do
  940. table.insert(tab,tostring(oldtab[i]))
  941. end
  942. table.sort(tab)
  943. for i = 1, #tab do
  944. new = new..tostring(tab[i])..", "
  945. end
  946. new = new:sub(1,#new-2)
  947. return new
  948. end
  949.  
  950. function stringtobool(str)
  951. if str:lower() == "yes" or str:lower() == "on" or str:lower() == "ye" or str:lower() == "yea" or str:lower() == "yeah" or str:lower() == "yep" or str == "true" then
  952. return true
  953. elseif str:lower() == "no" or str:lower() == "off" or str:lower() == "nop" or str:lower() == "nope" or str:lower() == "nah" or str:lower() == "na" or str:lower() == "false" then
  954. return false
  955. end
  956. end
  957.  
  958. if not script:FindFirstChild("ADMIN_ENCODED_SOURCE") then
  959. DisplayMessageAll("AdminScriptCreatorSecurity","ADMIN_ENCODED_SOURCE isn't present in the script. The "..script.className:lower().." has not been executed.",5)
  960. return
  961. end
  962.  
  963. if not script:FindFirstChild("ADMIN_SCRIPT_SIGNATURE") then
  964. DisplayMessageAll("AdminScriptCreatorSecurity","ADMIN_SCRIPT_SIGNATURE isn't present in the script. The "..script.className:lower().." has not been executed.",5)
  965. return
  966. end
  967.  
  968. Source = script:FindFirstChild("ADMIN_ENCODED_SOURCE").Value
  969. Signature = script:FindFirstChild("ADMIN_SCRIPT_SIGNATURE").Value
  970.  
  971. local signaturecheck1 = Signature
  972. local signaturecheck2 = CodeSignCache[Source] or sha1.hex(Source)
  973.  
  974. if signaturecheck1 ~= signaturecheck2 then
  975. DisplayMessageAll("AdminScriptCreatorSecurity","The code signature provided is invalid. The "..script.className:lower().." has not been executed.",5)
  976. return
  977. end
  978.  
  979. print("Signature correct! Yay!")
  980.  
  981. local Source = Source
  982.  
  983. local exe,err = loadstring("local exe = nil\n"..Source)
  984.  
  985. if not exe then
  986. DisplayMessageAll(script.className.." Executer","The "..script.className:lower().." that tried to be executed encountered a syntax error:\n\n"..tostring(err),7)
  987. return
  988. end
  989.  
  990. local ok,err = ypcall(function()
  991. local Source,Signature,signaturecheck1,signaturecheck2,Source,err = nil
  992. exe()
  993. end)
  994.  
  995. if not ok then --[[
  996. This is a very secure script loader included in RyanDolan123's Admin Commands
  997.  
  998. Whenever a script or localscript is launched using this external script, it is hashed in SHA-1 and acts as a signature of the code
  999. Then both the hashed and raw versions of the admin script are passed onto this script where everything is verified.
  1000. The script is also made undisableable just like the main admin script, and is also not allowed to restart to prevent the code from being modified
  1001.  
  1002. If either the signature or the code is tampered and does not match, the script will not execute the code.
  1003.  
  1004. I have not seen any other admin commands with this high level of security yet.
  1005.  
  1006.  
  1007. If you can write up a CE Lua exploit which can breach this remotely with an unmodified version of the Admin Commands version 1.1 and above, I might want to offer you a reward (Likely robux) if you can release the source code to me
  1008.  
  1009.  
  1010. The Lua5.1 SHA-1 encryption is provided by http://cube3d.de/
  1011. Released under the MIT license
  1012.  
  1013. --]]
  1014.  
  1015. if script:FindFirstChild("DO_NOT_REENABLE") then
  1016. return
  1017. end
  1018.  
  1019.  
  1020. wait()
  1021.  
  1022.  
  1023. Spawn(function()
  1024.  
  1025. CodeSignCache = {[ [[
  1026. local Player = game:GetService("Players").LocalPlayer
  1027. local Mouse = Player:GetMouse()
  1028. local Torso = Player.Character:WaitForChild("Torso")
  1029. local Humanoid = Player.Character:WaitForChild("Humanoid")
  1030. local Flying = true
  1031. local Control = {f = 0, b = 0, l = 0, r = 0}
  1032. local LastControl = {f = 0, b = 0, l = 0, r = 0}
  1033. local MaxSpeed = 50
  1034. local Speed = 0
  1035. local Camera = Workspace.CurrentCamera
  1036.  
  1037. local FlySmoke = Instance.new("Smoke",Torso)
  1038. FlySmoke.Name = "FlySmoke"
  1039. FlySmoke.Opacity = 0.08
  1040. FlySmoke.Size = 25
  1041.  
  1042. Instance.new("StringValue",script).Name = "DO_NOT_REENABLE"
  1043.  
  1044. script.Parent = Player:FindFirstChild("PlayerGui")
  1045. script.Name = "ADMIN_FLY_SCRIPT"
  1046.  
  1047. function Fly()
  1048. local Gyro = Instance.new("BodyGyro", Torso)
  1049. Gyro.P = 9e4
  1050. Gyro.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  1051. Gyro.cframe = Torso.CFrame --why is cframe in lowercase for BodyGyros
  1052.  
  1053. local Velocity = Instance.new("BodyVelocity", Torso)
  1054. Velocity.velocity = Vector3.new(0,0.1,0) --roblox why is velocity lowercase
  1055. Velocity.maxForce = Vector3.new(9e9, 9e9, 9e9)
  1056.  
  1057. repeat
  1058. wait()
  1059.  
  1060. Humanoid.PlatformStand = true
  1061.  
  1062. if Control.l + Control.r + Control.f + Control.b > 0 then
  1063. FlySmoke.Enabled = true
  1064. else
  1065. FlySmoke.Enabled = false
  1066. end
  1067.  
  1068. if Control.l + Control.r ~= 0 or Control.f + Control.b ~= 0 then
  1069.  
  1070. Speed = Speed+.5+(Speed/MaxSpeed)
  1071.  
  1072. if Speed > MaxSpeed then
  1073. Speed = MaxSpeed
  1074. end
  1075. elseif not (Control.l + Control.r ~= 0 or Control.f + Control.b ~= 0) and Speed ~= 0 then
  1076. Speed = Speed-1
  1077. if Speed < 0 then
  1078. Speed = 0
  1079. end
  1080. end
  1081.  
  1082. if (Control.l + Control.r) ~= 0 or (Control.f + Control.b) ~= 0 then
  1083.  
  1084. Velocity.velocity =
  1085. ((Camera.CoordinateFrame.lookVector * (Control.f + Control.b)) +
  1086. ((Camera.CoordinateFrame * CFrame.new(Control.l + Control.r,(Control.f + Control.b) * 0.2, 0).p) - --yuck
  1087. Camera.CoordinateFrame.p))*Speed
  1088.  
  1089. LastControl = {f = Control.f, b = Control.b, l = Control.l, r = Control.r}
  1090.  
  1091. elseif (Control.l + Control.r) == 0 and (Control.f + Control.b) == 0 and Speed ~= 0 then
  1092.  
  1093. Velocity.velocity =
  1094. ((Camera.CoordinateFrame.lookVector * (LastControl.f + LastControl.b)) +
  1095. ((Camera.CoordinateFrame * CFrame.new(LastControl.l + LastControl.r, (LastControl.f + LastControl.b) * 0.2, 0).p) - --also yuck
  1096. Camera.CoordinateFrame.p))*Speed
  1097.  
  1098. else
  1099. Velocity.velocity = Vector3.new(0,0.1,0)
  1100. end
  1101.  
  1102. Gyro.cframe = Camera.CoordinateFrame * CFrame.Angles(-math.rad((Control.f+Control.b)*50*Speed/MaxSpeed),0,0)
  1103.  
  1104. until not Flying or not script.Parent
  1105.  
  1106. Control = {f = 0, b = 0, l = 0, r = 0}
  1107. LastControl = {f = 0, b = 0, l = 0, r = 0}
  1108. Speed = 0
  1109. Gyro:Destroy()
  1110. Velocity:Destroy()
  1111. Humanoid.PlatformStand = false
  1112.  
  1113. end
  1114.  
  1115. Mouse.KeyDown:connect(function(key)
  1116. if key:lower() == "e" then
  1117. Flying = not Flying
  1118. if Flying then
  1119. Fly()
  1120. end
  1121. elseif key:lower() == "w" then
  1122. Control.f = 1
  1123. elseif key:lower() == "s" then
  1124. Control.b = -1
  1125. elseif key:lower() == "a" then
  1126. Control.l = -1
  1127. elseif key:lower() == "d" then
  1128. Control.r = 1
  1129. end
  1130. end)
  1131.  
  1132. Mouse.KeyUp:connect(function(key)
  1133. if key:lower() == "w" then
  1134. Control.f = 0
  1135. elseif key:lower() == "s" then
  1136. Control.b = 0
  1137. elseif key:lower() == "a" then
  1138. Control.l = 0
  1139. elseif key:lower() == "d" then
  1140. Control.r = 0
  1141. end
  1142. end)
  1143.  
  1144. Fly()]]] = "bc194bb513ac52f25311f39279e7b6859c1bc754";
  1145.  
  1146. [ [[
  1147. local Player = game.Players.LocalPlayer
  1148. local Mouse = Player:GetMouse()
  1149. local Character = Player.Character
  1150. local Humanoid = Character:FindFirstChild("Humanoid")
  1151. local Torso = Character:WaitForChild("Torso")
  1152. local Camera = Workspace.CurrentCamera
  1153. local Move = {W = 0, S = 0, A = 0, D = 0}
  1154. local Speed = 2
  1155.  
  1156. Instance.new("StringValue",script).Name = "DO_NOT_REENABLE"
  1157.  
  1158. script.Parent = Player:FindFirstChild("PlayerGui")
  1159. script.Name = "ADMIN_NOCLIP_SCRIPT"
  1160.  
  1161. Mouse.KeyDown:connect(function(key)
  1162. if key:lower() == "w" then
  1163. Move.W = 1
  1164. elseif key:lower() == "s" then
  1165. Move.S = 1
  1166. elseif key:lower() == "a" then
  1167. Move.A = 1
  1168. elseif key:lower() == "d" then
  1169. Move.D = 1
  1170. elseif key:lower() == "q" then
  1171. Speed = Speed + 1
  1172. elseif key:lower() == "e" then
  1173. Speed = Speed - 1
  1174. end
  1175. end)
  1176.  
  1177. Mouse.KeyUp:connect(function(key)
  1178. if key:lower() == "w" then
  1179. Move.W = 0
  1180. elseif key:lower() == "s" then
  1181. Move.S = 0
  1182. elseif key:lower() == "a" then
  1183. Move.A = 0
  1184. elseif key:lower() == "d" then
  1185. Move.D = 0
  1186. end
  1187. end)
  1188.  
  1189. Torso.Anchored = true
  1190. Humanoid.PlatformStand = true
  1191.  
  1192. local eventt = Humanoid.Changed:connect(function()
  1193. Humanoid.PlatformStand = true
  1194. end)
  1195.  
  1196. local event = game:GetService("RunService").RenderStepped:connect(function()
  1197. Torso.CFrame = CFrame.new(
  1198. Torso.Position,
  1199. Camera.CoordinateFrame.p) *
  1200. CFrame.Angles(0, math.rad(180), 0) *
  1201. CFrame.new((Move.D - Move.A) *
  1202. Speed,
  1203. 0,
  1204. (Move.S - Move.W) *
  1205. Speed
  1206. )
  1207. end)
  1208.  
  1209. repeat wait(0.25) until not script.Parent
  1210.  
  1211. event:disconnect()
  1212. eventt:disconnect()]]] = "b7d0deea7bfdf2cc3f3be7e6c56f837229231258";
  1213. }
  1214.  
  1215.  
  1216. Workspace = game:GetService("Workspace")
  1217. Players = game:GetService("Players")
  1218. Lighting = game:GetService("Lighting")
  1219. ReplicatedStorage = game:GetService("ReplicatedStorage")
  1220. ServerStorage = game:GetService("ServerStorage")
  1221. ServerScriptStorage = game:GetService("ServerScriptService")
  1222. StarterGui = game:GetService("StarterGui")
  1223. StarterPack = game:GetService("StarterPack")
  1224. Debris = game:GetService("Debris")
  1225. Teams = game:GetService("Teams")
  1226. TeleportService = game:GetService("TeleportService")
  1227. MarketplaceService = game:GetService("MarketplaceService")
  1228.  
  1229. tweentime = 0.5
  1230. tweenstyle = "Quart"
  1231.  
  1232. if not script:IsA("LocalScript") then
  1233. script.Parent = nil
  1234. end
  1235.  
  1236. function TweenBackgroundTransparency(element,starta,enda,length)
  1237. coroutine.resume(coroutine.create(function()
  1238. local startTime = time()
  1239. local lastTrans = element.BackgroundTransparency
  1240. while time() - startTime < length do
  1241. if element.BackgroundTransparency == lastTrans then
  1242. element.BackgroundTransparency = ((enda - starta) * ((time() - startTime)/length)) + starta
  1243. else
  1244. break
  1245. end
  1246. lastTrans = element.BackgroundTransparency
  1247. wait(.01)
  1248. end
  1249. element.BackgroundTransparency = enda
  1250. return true
  1251. end))
  1252. end
  1253.  
  1254. function TweenTextTransparency(element,starta,enda,length)
  1255. coroutine.resume(coroutine.create(function()
  1256. local startTime = time()
  1257. local lastTextTrans = element.TextTransparency
  1258. local lastTextStrokeTrans = element.TextStrokeTransparency
  1259.  
  1260. while time() - startTime < length do
  1261. if element.TextTransparency == lastTextTrans and element.TextStrokeTransparency == lastTextStrokeTrans then
  1262. element.TextTransparency = ((enda - starta) * ((time() - startTime)/length)) + starta
  1263. element.TextStrokeTransparency = 0.75 + (element.TextTransparency * 0.25)
  1264. else
  1265. break
  1266. end
  1267. lastTextTrans = element.TextTransparency
  1268. lastTextStrokeTrans = element.TextStrokeTransparency
  1269. wait(.01)
  1270. end
  1271. element.TextTransparency = enda
  1272. element.TextStrokeTransparency = 0.75 + (element.TextTransparency * 0.25)
  1273. return true
  1274. end))
  1275. end
  1276.  
  1277. sha1 = {}
  1278.  
  1279. local cfg_caching = false
  1280.  
  1281. local floor,modf = math.floor,math.modf
  1282. local char,format,rep = string.char,string.format,string.rep
  1283.  
  1284. local function bytes_to_w32 (a,b,c,d) return a*0x1000000+b*0x10000+c*0x100+d end
  1285.  
  1286. local function w32_to_bytes (i)
  1287. return floor(i/0x1000000)%0x100,floor(i/0x10000)%0x100,floor(i/0x100)%0x100,i%0x100
  1288. end
  1289.  
  1290. local function w32_rot (bits,a)
  1291. local b2 = 2^(32-bits)
  1292. local a,b = modf(a/b2)
  1293. return a+b*b2*(2^(bits))
  1294. end
  1295.  
  1296. local function cache2arg (fn)
  1297. if not cfg_caching then return fn end
  1298. local lut = {}
  1299. for i=0,0xffff do
  1300. local a,b = floor(i/0x100),i%0x100
  1301. lut[i] = fn(a,b)
  1302. end
  1303. return function (a,b)
  1304. return lut[a*0x100+b]
  1305. end
  1306. end
  1307.  
  1308. local function byte_to_bits (b)
  1309. local b = function (n)
  1310. local b = floor(b/n)
  1311. return b%2==1
  1312. end
  1313. return b(1),b(2),b(4),b(8),b(16),b(32),b(64),b(128)
  1314. end
  1315.  
  1316. local function bits_to_byte (a,b,c,d,e,f,g,h)
  1317. local function n(b,x) return b and x or 0 end
  1318. return n(a,1)+n(b,2)+n(c,4)+n(d,8)+n(e,16)+n(f,32)+n(g,64)+n(h,128)
  1319. end
  1320.  
  1321. local function bits_to_string (a,b,c,d,e,f,g,h)
  1322. local function x(b) return b and "1" or "0" end
  1323. return ("%s%s%s%s %s%s%s%s"):format(x(a),x(b),x(c),x(d),x(e),x(f),x(g),x(h))
  1324. end
  1325.  
  1326. local function byte_to_bit_string (b)
  1327. return bits_to_string(byte_to_bits(b))
  1328. end
  1329.  
  1330. local function w32_to_bit_string(a)
  1331. if type(a) == "string" then return a end
  1332. local aa,ab,ac,ad = w32_to_bytes(a)
  1333. local s = byte_to_bit_string
  1334. return ("%s %s %s %s"):format(s(aa):reverse(),s(ab):reverse(),s(ac):reverse(),s(ad):reverse()):reverse()
  1335. end
  1336.  
  1337. local band = cache2arg (function(a,b)
  1338. local A,B,C,D,E,F,G,H = byte_to_bits(b)
  1339. local a,b,c,d,e,f,g,h = byte_to_bits(a)
  1340. return bits_to_byte(
  1341. A and a, B and b, C and c, D and d,
  1342. E and e, F and f, G and g, H and h)
  1343. end)
  1344.  
  1345. local bor = cache2arg(function(a,b)
  1346. local A,B,C,D,E,F,G,H = byte_to_bits(b)
  1347. local a,b,c,d,e,f,g,h = byte_to_bits(a)
  1348. return bits_to_byte(
  1349. A or a, B or b, C or c, D or d,
  1350. E or e, F or f, G or g, H or h)
  1351. end)
  1352.  
  1353. local bxor = cache2arg(function(a,b)
  1354. local A,B,C,D,E,F,G,H = byte_to_bits(b)
  1355. local a,b,c,d,e,f,g,h = byte_to_bits(a)
  1356. return bits_to_byte(
  1357. A ~= a, B ~= b, C ~= c, D ~= d,
  1358. E ~= e, F ~= f, G ~= g, H ~= h)
  1359. end)
  1360.  
  1361. local function bnot (x)
  1362. return 255-(x % 256)
  1363. end
  1364.  
  1365. local function w32_comb(fn)
  1366. return function (a,b)
  1367. local aa,ab,ac,ad = w32_to_bytes(a)
  1368. local ba,bb,bc,bd = w32_to_bytes(b)
  1369. return bytes_to_w32(fn(aa,ba),fn(ab,bb),fn(ac,bc),fn(ad,bd))
  1370. end
  1371. end
  1372.  
  1373. local w32_and = w32_comb(band)
  1374. local w32_xor = w32_comb(bxor)
  1375. local w32_or = w32_comb(bor)
  1376.  
  1377. local function w32_xor_n (a,...)
  1378. local aa,ab,ac,ad = w32_to_bytes(a)
  1379. for i=1,select('#',...) do
  1380. local ba,bb,bc,bd = w32_to_bytes(select(i,...))
  1381. aa,ab,ac,ad = bxor(aa,ba),bxor(ab,bb),bxor(ac,bc),bxor(ad,bd)
  1382. end
  1383. return bytes_to_w32(aa,ab,ac,ad)
  1384. end
  1385.  
  1386. local function w32_or3 (a,b,c)
  1387. local aa,ab,ac,ad = w32_to_bytes(a)
  1388. local ba,bb,bc,bd = w32_to_bytes(b)
  1389. local ca,cb,cc,cd = w32_to_bytes(c)
  1390. return bytes_to_w32(
  1391. bor(aa,bor(ba,ca)), bor(ab,bor(bb,cb)), bor(ac,bor(bc,cc)), bor(ad,bor(bd,cd))
  1392. )
  1393. end
  1394.  
  1395. local function w32_not (a)
  1396. return 4294967295-(a % 4294967296)
  1397. end
  1398.  
  1399. local function w32_add (a,b) return (a+b) % 4294967296 end
  1400.  
  1401. local function w32_add_n (a,...)
  1402. for i=1,select('#',...) do
  1403. a = (a+select(i,...)) % 4294967296
  1404. end
  1405. return a
  1406. end
  1407.  
  1408. local function w32_to_hexstring (w) return format("%08x",w) end
  1409.  
  1410. function sha1.hex(msg)
  1411. local H0,H1,H2,H3,H4 = 0x67452301,0xEFCDAB89,0x98BADCFE,0x10325476,0xC3D2E1F0
  1412. local msg_len_in_bits = #msg * 8
  1413.  
  1414. local first_append = char(0x80) -- append a '1' bit plus seven '0' bits
  1415.  
  1416. local non_zero_message_bytes = #msg +1 +8 -- the +1 is the appended bit 1, the +8 are for the final appended length
  1417. local current_mod = non_zero_message_bytes % 64
  1418. local second_append = current_mod>0 and rep(char(0), 64 - current_mod) or ""
  1419.  
  1420. -- now to append the length as a 64-bit number.
  1421. local B1, R1 = modf(msg_len_in_bits / 0x01000000)
  1422. local B2, R2 = modf( 0x01000000 * R1 / 0x00010000)
  1423. local B3, R3 = modf( 0x00010000 * R2 / 0x00000100)
  1424. local B4 = 0x00000100 * R3
  1425.  
  1426. local L64 = char( 0) .. char( 0) .. char( 0) .. char( 0) -- high 32 bits
  1427. .. char(B1) .. char(B2) .. char(B3) .. char(B4) -- low 32 bits
  1428.  
  1429. msg = msg .. first_append .. second_append .. L64
  1430.  
  1431. assert(#msg % 64 == 0)
  1432.  
  1433. local chunks = #msg / 64
  1434.  
  1435. local W = { }
  1436. local start, A, B, C, D, E, f, K, TEMP
  1437. local chunk = 0
  1438.  
  1439. while chunk < chunks do
  1440. --
  1441. -- break chunk up into W[0] through W[15]
  1442. --
  1443. start,chunk = chunk * 64 + 1,chunk + 1
  1444.  
  1445. for t = 0, 15 do
  1446. W[t] = bytes_to_w32(msg:byte(start, start + 3))
  1447. start = start + 4
  1448. end
  1449.  
  1450. --
  1451. -- build W[16] through W[79]
  1452. --
  1453. for t = 16, 79 do
  1454. -- For t = 16 to 79 let Wt = S1(Wt-3 XOR Wt-8 XOR Wt-14 XOR Wt-16).
  1455. W[t] = w32_rot(1, w32_xor_n(W[t-3], W[t-8], W[t-14], W[t-16]))
  1456. end
  1457.  
  1458. A,B,C,D,E = H0,H1,H2,H3,H4
  1459.  
  1460. for t = 0, 79 do
  1461. if t <= 19 then
  1462. -- (B AND C) OR ((NOT B) AND D)
  1463. f = w32_or(w32_and(B, C), w32_and(w32_not(B), D))
  1464. K = 0x5A827999
  1465. elseif t <= 39 then
  1466. -- B XOR C XOR D
  1467. f = w32_xor_n(B, C, D)
  1468. K = 0x6ED9EBA1
  1469. elseif t <= 59 then
  1470. -- (B AND C) OR (B AND D) OR (C AND D
  1471. f = w32_or3(w32_and(B, C), w32_and(B, D), w32_and(C, D))
  1472. K = 0x8F1BBCDC
  1473. else
  1474. -- B XOR C XOR D
  1475. f = w32_xor_n(B, C, D)
  1476. K = 0xCA62C1D6
  1477. end
  1478.  
  1479. -- TEMP = S5(A) + ft(B,C,D) + E + Wt + Kt;
  1480. A,B,C,D,E = w32_add_n(w32_rot(5, A), f, E, W[t], K),
  1481. A, w32_rot(30, B), C, D
  1482. end
  1483. -- Let H0 = H0 + A, H1 = H1 + B, H2 = H2 + C, H3 = H3 + D, H4 = H4 + E.
  1484. H0,H1,H2,H3,H4 = w32_add(H0, A),w32_add(H1, B),w32_add(H2, C),w32_add(H3, D),w32_add(H4, E)
  1485. end
  1486. local f = w32_to_hexstring
  1487. return f(H0) .. f(H1) .. f(H2) .. f(H3) .. f(H4)
  1488. end
  1489.  
  1490. local function hex_to_binary(hex)
  1491. return hex:gsub('..', function(hexval)
  1492. return string.char(tonumber(hexval, 16))
  1493. end)
  1494. end
  1495.  
  1496. function sha1.bin(msg)
  1497. return hex_to_binary(sha1.hex(msg))
  1498. end
  1499.  
  1500. local xor_with_0x5c = {}
  1501. local xor_with_0x36 = {}
  1502. -- building the lookuptables ahead of time (instead of littering the source code
  1503. -- with precalculated values)
  1504. for i=0,0xff do
  1505. xor_with_0x5c[char(i)] = char(bxor(i,0x5c))
  1506. xor_with_0x36[char(i)] = char(bxor(i,0x36))
  1507. end
  1508.  
  1509. local blocksize = 64 -- 512 bits
  1510.  
  1511. function sha1.hmacHex(key, text)
  1512. assert(type(key) == 'string', "key passed to hmacHex should be a string")
  1513. assert(type(text) == 'string', "text passed to hmacHex should be a string")
  1514.  
  1515. if #key > blocksize then
  1516. key = sha1.bin(key)
  1517. end
  1518.  
  1519. local key_xord_with_0x36 = key:gsub('.', xor_with_0x36) .. string.rep(string.char(0x36), blocksize - #key)
  1520. local key_xord_with_0x5c = key:gsub('.', xor_with_0x5c) .. string.rep(string.char(0x5c), blocksize - #key)
  1521.  
  1522. return sha1.hex(key_xord_with_0x5c .. sha1.bin(key_xord_with_0x36 .. text))
  1523. end
  1524.  
  1525. function sha1.hmacBin(key, text)
  1526. return hex_to_binary(sha1.hmacHex(key, text))
  1527. end
  1528.  
  1529.  
  1530.  
  1531. function MakeMsgGui(player)
  1532. if player == ROOT or player == "ROOT" then
  1533. return true
  1534. end
  1535. local Gui = player:WaitForChild("PlayerGui"):FindFirstChild("Admi")
  1536. if not Gui or not Gui:IsA("ScreenGui") then
  1537. Gui = MakeAdmiGui(player:WaitForChild("PlayerGui"))
  1538. end
  1539. local MsgGui = Instance.new("Frame", Gui)
  1540. MsgGui.Name = "Msg"
  1541. MsgGui.Position = UDim2.new(0.5, -250, 0.5, -125)
  1542. MsgGui.Size = UDim2.new(0, 500, 0, 300)
  1543. MsgGui.BackgroundColor3 = Color3.new(0, 0, 0)
  1544. MsgGui.BackgroundTransparency = 0.45
  1545. MsgGui.BorderSizePixel = 0
  1546. MsgGui.ZIndex = 10
  1547.  
  1548. local Msg = Instance.new("TextLabel", MsgGui)
  1549. Msg.Name = "Msg"
  1550. Msg.Position = UDim2.new(0, 0, 0.2, 0)
  1551. Msg.Size = UDim2.new(1, 0, 0.8, 0)
  1552. Msg.BackgroundColor3 = Color3.new(0.208, 0.208, 0.208)
  1553. Msg.BackgroundTransparency = 1
  1554. Msg.BorderSizePixel = 0
  1555. Msg.Text = "Message"
  1556. Msg.Font = "Arial"
  1557. Msg.FontSize = "Size18"
  1558. Msg.TextStrokeTransparency = 0.7
  1559. Msg.TextWrapped = true
  1560. Msg.TextYAlignment = "Top"
  1561. Msg.TextColor3 = Color3.new(1, 1, 1)
  1562. Msg.ZIndex = 10
  1563.  
  1564. local Title = Instance.new("TextLabel", MsgGui)
  1565. Title.Name = "Title"
  1566. Title.Position = UDim2.new(0, 0, 0.08, 0)
  1567. Title.Size = UDim2.new(1, 0, 0.125, 0)
  1568. Title.BackgroundTransparency = 1
  1569. Title.BorderSizePixel = 0
  1570. Title.Text = "Message"
  1571. Title.Font = "ArialBold"
  1572. Title.FontSize = "Size24"
  1573. Title.TextScaled = true
  1574. Title.TextStrokeTransparency = 0.7
  1575. Title.TextWrapped = true
  1576. Title.TextYAlignment = "Top"
  1577. Title.TextColor3 = Color3.new(1, 1, 1)
  1578. Title.ZIndex = 10
  1579.  
  1580. return Msg
  1581. end
  1582.  
  1583. function DisplayScrollFrame(player,title,text)
  1584. if player == ROOT or player == "ROOT" then
  1585. return true
  1586. end
  1587. local Gui = player:WaitForChild("PlayerGui"):FindFirstChild("Admi")
  1588. if not Gui or not Gui:IsA("ScreenGui") then
  1589. Gui = MakeAdmiGui(player:WaitForChild("PlayerGui"))
  1590. end
  1591. if Gui:FindFirstChild("ScrollGui") then
  1592. Gui:FindFirstChild("ScrollGui"):Destroy()
  1593. end
  1594.  
  1595. local title = title
  1596. local text = text
  1597.  
  1598. if title == nil then
  1599. title = "Message"
  1600. end
  1601. if text == nil then
  1602. text = title
  1603. title = "Message"
  1604. end
  1605.  
  1606. local ReenableMsg = (Gui:FindFirstChild("Msg") and Gui:FindFirstChild("Msg").Visible) or false
  1607.  
  1608. local ScrollGui = Instance.new("Frame", Gui)
  1609. ScrollGui.Name = "ScrollGui"
  1610. ScrollGui.Position = UDim2.new(0.5, -125, 0.5, -125)
  1611. ScrollGui.Size = UDim2.new(0, 250, 0, 250)
  1612. ScrollGui.BackgroundColor3 = Color3.new(0, 0, 0)
  1613. ScrollGui.BackgroundTransparency = 0.44999998807907
  1614. ScrollGui.BorderSizePixel = 0
  1615. ScrollGui.ZIndex = 9
  1616. ScrollGui.ClipsDescendants = true
  1617. ScrollGui.Visible = false
  1618.  
  1619. local ScrollingFrameCutter = Instance.new("Frame", ScrollGui)
  1620. ScrollingFrameCutter.Name = "ScrollingFrameCutter"
  1621. ScrollingFrameCutter.Position = UDim2.new(0.5, -250, 0.64999997615814, -250)
  1622. ScrollingFrameCutter.Size = UDim2.new(1, 0, 0.85000002384186, 0)
  1623. ScrollingFrameCutter.BackgroundColor3 = Color3.new(0, 0, 0)
  1624. ScrollingFrameCutter.BackgroundTransparency = 1
  1625. ScrollingFrameCutter.BorderSizePixel = 0
  1626. ScrollingFrameCutter.ZIndex = 9
  1627. ScrollingFrameCutter.ClipsDescendants = true
  1628.  
  1629. local MsgContainer = Instance.new("TextLabel", ScrollingFrameCutter)
  1630. MsgContainer.Name = "MsgContainer"
  1631. MsgContainer.Size = UDim2.new(1, 0, 999, 0)
  1632. MsgContainer.BackgroundColor3 = Color3.new(0.20784315466881, 0.20784315466881, 0.20784315466881)
  1633. MsgContainer.BackgroundTransparency = 1
  1634. MsgContainer.BorderSizePixel = 0
  1635. MsgContainer.Text = ""
  1636. MsgContainer.Font = Enum.Font.Arial
  1637. MsgContainer.FontSize = Enum.FontSize.Size18
  1638. MsgContainer.TextTransparency = 1
  1639. MsgContainer.TextWrapped = true
  1640. MsgContainer.TextYAlignment = Enum.TextYAlignment.Top
  1641. MsgContainer.TextXAlignment = Enum.TextXAlignment.Left
  1642. MsgContainer.TextColor3 = Color3.new(1, 1, 1)
  1643. MsgContainer.ZIndex = 9
  1644.  
  1645. local MsgStrips = {}
  1646.  
  1647. for a in text:gmatch("[^\n]+") do
  1648. local Msg = Instance.new("TextLabel", MsgContainer)
  1649. Msg.Name = "Msg"..(#MsgStrips + 1)
  1650. Msg.Size = UDim2.new(1, 0, 0, 20)
  1651. Msg.Position = UDim2.new(0,0,0,#MsgStrips * 18)
  1652. Msg.BackgroundColor3 = Color3.new(0.20784315466881, 0.20784315466881, 0.20784315466881)
  1653. Msg.BackgroundTransparency = 1
  1654. Msg.BorderSizePixel = 0
  1655. Msg.Text = a
  1656. Msg.Font = Enum.Font.Arial
  1657. Msg.FontSize = Enum.FontSize.Size18
  1658. Msg.TextTransparency = 1
  1659. Msg.TextWrapped = true
  1660. Msg.TextYAlignment = Enum.TextYAlignment.Center
  1661. Msg.TextXAlignment = Enum.TextXAlignment.Left
  1662. Msg.TextColor3 = Color3.new(1, 1, 1)
  1663. Msg.ZIndex = 9
  1664. table.insert(MsgStrips,Msg)
  1665. end
  1666.  
  1667. local Up = Instance.new("TextButton", ScrollGui)
  1668. Up.Name = "Up"
  1669. Up.Position = UDim2.new(0.94999998807907, 0, 0, 0)
  1670. Up.Size = UDim2.new(0.050000000745058, 0, 0.050000000745058, 0)
  1671. Up.BackgroundColor3 = Color3.new(1, 1, 1)
  1672. Up.BackgroundTransparency = 0.85000002384186
  1673. Up.Text = "^"
  1674. Up.Font = Enum.Font.ArialBold
  1675. Up.FontSize = Enum.FontSize.Size36
  1676. Up.TextStrokeTransparency = 0.75
  1677. Up.TextYAlignment = Enum.TextYAlignment.Top
  1678. Up.TextColor3 = Color3.new(1, 1, 1)
  1679. Up.ZIndex = 10
  1680. Up.MouseButton1Click:connect(function()
  1681. if MsgContainer.Parent == nil then
  1682. return
  1683. end
  1684. local asds = MsgContainer.Position.Y.Scale+0.5
  1685. if asds > 0 then
  1686. asds = 0
  1687. end
  1688. MsgContainer:TweenPosition(UDim2.new(0,0,asds,0),nil,"Quint",tweentime*0.75,true)
  1689. end)
  1690.  
  1691. local Down = Instance.new("TextButton", ScrollGui)
  1692. Down.Name = "Down"
  1693. Down.Position = UDim2.new(0.94999998807907, 0, 0.94999998807907, 0)
  1694. Down.Size = UDim2.new(0.050000000745058, 0, 0.050000000745058, 0)
  1695. Down.BackgroundColor3 = Color3.new(1, 1, 1)
  1696. Down.BackgroundTransparency = 0.85000002384186
  1697. Down.Text = "v"
  1698. Down.Font = Enum.Font.ArialBold
  1699. Down.FontSize = Enum.FontSize.Size24
  1700. Down.TextStrokeTransparency = 0.75
  1701. Down.TextColor3 = Color3.new(1, 1, 1)
  1702. Down.ZIndex = 10
  1703. Down.MouseButton1Click:connect(function()
  1704. if MsgContainer.Parent == nil then
  1705. return
  1706. end
  1707. MsgContainer:TweenPosition(UDim2.new(0,0,MsgContainer.Position.Y.Scale-0.5,0),nil,"Quint",tweentime*0.75,true)
  1708. end)
  1709.  
  1710. local Title = Instance.new("TextLabel", ScrollGui)
  1711. Title.Name = "Title"
  1712. Title.Position = UDim2.new(0, 0, 0.025000000372529, 0)
  1713. Title.Size = UDim2.new(1, 0, 0.10000000149012, 0)
  1714. Title.BackgroundTransparency = 1
  1715. Title.BorderSizePixel = 0
  1716. Title.Text = title
  1717. Title.Font = Enum.Font.ArialBold
  1718. Title.FontSize = Enum.FontSize.Size24
  1719. Title.TextScaled = true
  1720. Title.TextWrapped = true
  1721. Title.TextYAlignment = Enum.TextYAlignment.Top
  1722. Title.TextColor3 = Color3.new(1, 1, 1)
  1723. Title.ZIndex = 10
  1724.  
  1725. local Close = Instance.new("TextButton", ScrollGui)
  1726. Close.Name = "Close"
  1727. Close.Position = UDim2.new(0, 0, 0, 0)
  1728. Close.Size = UDim2.new(0.050000000745058, 0, 0.050000000745058, 0)
  1729. Close.BackgroundColor3 = Color3.new(1, 1, 1)
  1730. Close.BackgroundTransparency = 0.85000002384186
  1731. Close.Text = "X"
  1732. Close.Font = Enum.Font.ArialBold
  1733. Close.FontSize = Enum.FontSize.Size24
  1734. Close.TextStrokeTransparency = 0.75
  1735. Close.TextYAlignment = Enum.TextYAlignment.Top
  1736. Close.TextColor3 = Color3.new(1, 1, 1)
  1737. Close.ZIndex = 10
  1738.  
  1739. Close.MouseButton1Click:connect(function()
  1740. if MsgContainer == nil or MsgContainer.Parent == nil then
  1741. return
  1742. end
  1743. ScrollGui:TweenSizeAndPosition(UDim2.new(0,250,0,250),UDim2.new(0.5,-125,0.5,-125),nil,"Quint",tweentime,true)
  1744. TweenBackgroundTransparency(ScrollGui,0.45,1,tweentime*0.4)
  1745. TweenBackgroundTransparency(Up,0.85,1,tweentime*0.4)
  1746. TweenBackgroundTransparency(Down,0.85,1,tweentime*0.4)
  1747. TweenBackgroundTransparency(Close,0.85,1,tweentime*0.4)
  1748.  
  1749. TweenTextTransparency(Up,0,1,tweentime*0.35)
  1750. TweenTextTransparency(Down,0,1,tweentime*0.35)
  1751. TweenTextTransparency(Close,0,1,tweentime*0.35)
  1752.  
  1753. TweenTextTransparency(Title,0,1,tweentime*0.35)
  1754.  
  1755. for _,i in pairs(MsgStrips) do
  1756. TweenTextTransparency(i,0,1,tweentime*0.35)
  1757. end
  1758.  
  1759. wait(tweentime)
  1760. ScrollGui.Visible = false
  1761. Gui:FindFirstChild("Msg").Visible = ReenableMsg
  1762. end)
  1763.  
  1764. ScrollGui:TweenSizeAndPosition(UDim2.new(0,500,0,500),UDim2.new(0.5,-250,0.5,-250),nil,"Quint",tweentime,true)
  1765. TweenBackgroundTransparency(ScrollGui,1,0.45,tweentime*0.45)
  1766. TweenBackgroundTransparency(Up,1,0.85,tweentime*0.5)
  1767. TweenBackgroundTransparency(Down,1,0.85,tweentime*0.5)
  1768. TweenBackgroundTransparency(Close,1,0.85,tweentime*0.5)
  1769.  
  1770. TweenTextTransparency(Up,1,0,tweentime*0.6)
  1771. TweenTextTransparency(Down,1,0,tweentime*0.6)
  1772. TweenTextTransparency(Close,1,0,tweentime*0.6)
  1773.  
  1774. TweenTextTransparency(Title,1,0,tweentime*0.6)
  1775.  
  1776. for _,i in pairs(MsgStrips) do
  1777. TweenTextTransparency(i,1,0,tweentime*0.6)
  1778. end
  1779.  
  1780. ScrollGui.Visible = true
  1781.  
  1782. return ScrollGui
  1783. end
  1784.  
  1785.  
  1786. function DisplayMessage(player,title,text,displaytime)
  1787. if player == ROOT or player == "ROOT" or player == nil then
  1788. return
  1789. end
  1790. Spawn(function()
  1791. local text,title = text,title
  1792. local pgui = player:FindFirstChild("PlayerGui")
  1793. if not pgui then
  1794. for _,i in pairs(player:GetChildren()) do
  1795. if i:IsA("PlayerGui") then
  1796. pgui = i
  1797. end
  1798. end
  1799. end
  1800. if not pgui:FindFirstChild("Admi") or not pgui:FindFirstChild("Admi"):FindFirstChild("Msg") then
  1801. MakeMsgGui(player)
  1802. end
  1803. --[[if not pgui:FindFirstChild("Admi"):IsA("ScreenGui") or not message:IsA("Frame") or not message.Msg:IsA("TextLabel") or not message.Title:IsA("TextLabel") then
  1804. MakeMsgGui(player)
  1805. end]]
  1806. local message = player:WaitForChild("PlayerGui"):FindFirstChild("Admi"):FindFirstChild("Msg")
  1807. if title == nil then
  1808. title = "Message"
  1809. end
  1810. if text == nil then
  1811. text = title
  1812. title = "Message"
  1813. end
  1814. message.Title.Text = "[ Content Deleted ]"
  1815. message.Msg.Text = "[ Content Deleted ]"
  1816. message.Title.Text = tostring(title)
  1817. message.Msg.Text = tostring(text)
  1818. message.Position = UDim2.new(0.5,-125,0.5,-75)
  1819. message.Size = UDim2.new(0,250,0,150)
  1820. TweenTextTransparency(message.Title,1,0,tweentime*0.65)
  1821. TweenTextTransparency(message.Msg,1,0,tweentime*0.65)
  1822. TweenBackgroundTransparency(message,1,0.45,tweentime*0.5)
  1823. wait()
  1824. message:TweenSizeAndPosition(UDim2.new(0,500,0,300),UDim2.new(0.5,-250,0.5,-150),nil,"Quint",tweentime,true,function()end)
  1825. message.Visible = true
  1826. wait(tweentime)
  1827. if displaytime ~= nil then
  1828. Delay(displaytime,function()if message.Msg.Text == tostring(text)then DismissMessage(player)end end)
  1829. end
  1830. end)
  1831. end
  1832.  
  1833. function DisplayMessageAll(title,text,displaytime)
  1834. for _,i in pairs(Players:GetPlayers()) do
  1835. DisplayMessage(i,title,text,displaytime)
  1836. end
  1837. end
  1838.  
  1839. function DismissMessageAll()
  1840. for _,i in pairs(Players:GetPlayers()) do
  1841. DismissMessage(i)
  1842. end
  1843. end
  1844.  
  1845. function DismissMessage(player)
  1846. if player == ROOT or player == "ROOT" then
  1847. return
  1848. end
  1849. if not player:WaitForChild("PlayerGui"):FindFirstChild("Admi") or not player:WaitForChild("PlayerGui"):FindFirstChild("Admi"):FindFirstChild("Msg") then
  1850. MakeMsgGui(player)
  1851. end
  1852. local message = player:WaitForChild("PlayerGui"):FindFirstChild("Admi"):FindFirstChild("Msg")
  1853. TweenBackgroundTransparency(message,0.45,1,tweentime*0.5)
  1854. TweenTextTransparency(message.Title,0,1,tweentime*0.22)
  1855. TweenTextTransparency(message.Msg,0,1,tweentime*0.22)
  1856. message:TweenSizeAndPosition(UDim2.new(0,0,0,0),--[[UDim2.new(0,250,0,150),UDim2.new(0.5,-125,0.5,-75)]]UDim2.new(0.5,0,0.5,0),nil,"Quint",tweentime*2.5,true,function()message.Visible = false end)
  1857. end
  1858.  
  1859. function MakeAdmiGui(parent)
  1860. if parent == "ROOT" or parent == ROOT then
  1861. return
  1862. end
  1863. local Gui = Instance.new("ScreenGui",parent)
  1864. Gui.Name = "Admi"
  1865. return Gui
  1866. end
  1867.  
  1868. function MakeTellGui(parent)
  1869. if parent == "ROOT" or parent == ROOT then
  1870. return
  1871. end
  1872. local Gui = parent:FindFirstChild("Admi")
  1873. if not Gui then
  1874. Gui = MakeAdmiGui(parent)
  1875. end
  1876. local Bar = Instance.new("TextLabel",Gui)
  1877. Bar.Name = "Message"
  1878. Bar.BackgroundColor3 = Color3.new(0,0,0)
  1879. Bar.BackgroundTransparency = 0.35
  1880. Bar.BorderSizePixel = 0
  1881. Bar.Font = "ArialBold"
  1882. Bar.FontSize = "Size18"
  1883. Bar.Text = "Message"
  1884. Bar.TextStrokeTransparency = 0.5
  1885. Bar.TextColor3 = Color3.new(1,1,1)
  1886. Bar.Size = UDim2.new(1,0,0,30)
  1887. Bar.Position = UDim2.new(0,0,0,-30)
  1888. return Gui
  1889. end
  1890.  
  1891. function Tell(player,msg,length)
  1892. if player == "ROOT" or player == ROOT then
  1893. return
  1894. end
  1895. local length = length
  1896. if length == nil then
  1897. length = 3
  1898. end
  1899. local PlayerGui = player:WaitForChild("PlayerGui")
  1900. if not PlayerGui:FindFirstChild("Admi") or not PlayerGui:FindFirstChild("Admi"):FindFirstChild("Message") then
  1901. MakeTellGui(PlayerGui)
  1902. end
  1903. PlayerGui:FindFirstChild("Admi"):FindFirstChild("Message").Text = msg
  1904. PlayerGui:FindFirstChild("Admi"):FindFirstChild("Message").Position = UDim2.new(0,0,0,-30)
  1905. PlayerGui:FindFirstChild("Admi"):FindFirstChild("Message"):TweenPosition(UDim2.new(0,0,0,0),nil,tweenstyle,tweentime,true)
  1906. Delay(length,function()
  1907. if PlayerGui:FindFirstChild("Admi"):FindFirstChild("Message").Text == msg then
  1908. PlayerGui:FindFirstChild("Admi"):FindFirstChild("Message"):TweenPosition(UDim2.new(0,0,0,-30),nil,tweenstyle,tweentime,true)
  1909. end
  1910. end)
  1911. end
  1912.  
  1913. function TellAll(msg,length)
  1914. for _,i in pairs(Players:GetPlayers()) do
  1915. Tell(i,msg,length)
  1916. end
  1917. end
  1918.  
  1919. function TellAdmins(msg,length)
  1920. for _,i in pairs(Players:GetPlayers()) do
  1921. if Permissions[i.Name] and Permissions[i.Name] > 0 then
  1922. Tell(i,msg,length)
  1923. end
  1924. end
  1925. end
  1926.  
  1927. rawunpack = unpack
  1928.  
  1929. function unpack(oldtab)
  1930. assert(oldtab,"u wot m8")
  1931. local new = ""
  1932. local tab = {}
  1933. for i = 1, #oldtab do
  1934. table.insert(tab,tostring(oldtab[i]))
  1935. end
  1936. table.sort(tab)
  1937. for i = 1, #tab do
  1938. new = new..tostring(tab[i])..", "
  1939. end
  1940. new = new:sub(1,#new-2)
  1941. return new
  1942. end
  1943.  
  1944. function stringtobool(str)
  1945. if str:lower() == "yes" or str:lower() == "on" or str:lower() == "ye" or str:lower() == "yea" or str:lower() == "yeah" or str:lower() == "yep" or str == "true" then
  1946. return true
  1947. elseif str:lower() == "no" or str:lower() == "off" or str:lower() == "nop" or str:lower() == "nope" or str:lower() == "nah" or str:lower() == "na" or str:lower() == "false" then
  1948. return false
  1949. end
  1950. end
  1951.  
  1952. if not script:FindFirstChild("ADMIN_ENCODED_SOURCE") then
  1953. DisplayMessageAll("AdminScriptCreatorSecurity","ADMIN_ENCODED_SOURCE isn't present in the script. The "..script.className:lower().." has not been executed.",5)
  1954. return
  1955. end
  1956.  
  1957. if not script:FindFirstChild("ADMIN_SCRIPT_SIGNATURE") then
  1958. DisplayMessageAll("AdminScriptCreatorSecurity","ADMIN_SCRIPT_SIGNATURE isn't present in the script. The "..script.className:lower().." has not been executed.",5)
  1959. return
  1960. end
  1961.  
  1962. Source = script:FindFirstChild("ADMIN_ENCODED_SOURCE").Value
  1963. Signature = script:FindFirstChild("ADMIN_SCRIPT_SIGNATURE").Value
  1964.  
  1965. local signaturecheck1 = Signature
  1966. local signaturecheck2 = CodeSignCache[Source] or sha1.hex(Source)
  1967.  
  1968. if signaturecheck1 ~= signaturecheck2 then
  1969. DisplayMessageAll("AdminScriptCreatorSecurity","The code signature provided is invalid. The "..script.className:lower().." has not been executed.",5)
  1970. return
  1971. end
  1972.  
  1973. print("Signature correct! Yay!")
  1974.  
  1975. local Source = Source
  1976.  
  1977. local exe,err = loadstring("local exe = nil\n"..Source)
  1978.  
  1979. if not exe then
  1980. DisplayMessageAll(script.className.." Executer","The "..script.className:lower().." that tried to be executed encountered a syntax error:\n\n"..tostring(err),7)
  1981. return
  1982. end
  1983.  
  1984. local ok,err = ypcall(function()
  1985. local Source,Signature,signaturecheck1,signaturecheck2,Source,err = nil
  1986. exe()
  1987. end)
  1988.  
  1989. if not ok then
  1990. DisplayMessageAll(script.className.." Executer","The "..script.className:lower().." that was executed encountered a runtime error:\n\n"..tostring(err),7)
  1991. end
  1992.  
  1993. end)
  1994.  
  1995. DisplayMessageAll(script.className.." Executer","The "..script.className:lower().." that was executed encountered a runtime error:\n\n"..tostring(err),7)
  1996. end
  1997.  
  1998. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement