Advertisement
BobMe

guimsb

Oct 1st, 2021 (edited)
370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.63 KB | None | 0 0
  1. local gui = owner.PlayerGui:FindFirstChild("PoopyHead")
  2. if gui == nil then gui = Instance.new("ScreenGui",owner.PlayerGui) gui.Name = "PoopyHead" end
  3. gui.ResetOnSpawn = false
  4. local g,h = Instance.new("BoolValue"),Instance.new("BoolValue")
  5. g.Name = "buttcake"
  6. h.Name = "buttcake"
  7. g.Parent = script
  8. local ls = NLS([==[
  9. wait(3)
  10. local remote = owner:WaitForChild("Proxxxky")
  11.  
  12. coroutine.resume(coroutine.create(function()
  13. while wait() do
  14. if remotee == nil or remotee.Parent ~= owner then
  15. local remotee = owner:WaitForChild("[[\"\"\"{{\"[[\"['[[''[''[[\"[['[[''[''[[]]'[[''[]']']\"'['['[[']]''['[[']'[']]'['[[\"[']']]'['[[']']'\"][['")
  16. remotee.OnClientEvent:Connect(function(msg,scriptname,outputType,scriptType,color)
  17. remote:InvokeServer(owner,"output",{msg,scriptname,outputType,scriptType,color})
  18. end)
  19. repeat wait() until remotee == nil
  20. end
  21. end
  22. end))
  23.  
  24. local press = false
  25. coroutine.resume(coroutine.create(function()
  26. while wait() do
  27. if remote2 == nil or remote2.Parent ~= game:GetService("ReplicatedStorage") then
  28. remote2 = game:GetService("ReplicatedStorage"):WaitForChild("ServerProxy")
  29. remote2.OnClientEvent:Connect(function(msg,scriptname,outputType,scriptType,color)
  30. remote:InvokeServer(owner,"ServerProxy",{msg,scriptname,outputType,scriptType,color})
  31. end)
  32. repeat wait() until remote2 == nil or remote2.Parent game:GetService("ReplicatedStorage")
  33. end
  34. end
  35. end))
  36.  
  37. local lastthing = ""
  38. coroutine.resume(coroutine.create(function()
  39. while wait(.25) do
  40. local localscript = owner.PlayerScripts:FindFirstChild("MonitorL")
  41. local monito = workspace:GetChildren()
  42. local monitor = nil
  43. for i,v in pairs(monito) do
  44. if v:FindFirstChild(owner.Name.."-Monitor") then
  45. monitor = v
  46. end
  47. end
  48. if monitor ~= nil and localscript ~= nil and lastthing ~= "active" then
  49. remote:InvokeServer(owner,"monitor","active")
  50. lastthing = "active"
  51. elseif lastthing ~= "inactive" and monitor == nil and localscript == nil then
  52. remote:InvokeServer(owner,"monitor","inactive")
  53. lastthing = "inactive"
  54. end
  55. end
  56. end))
  57.  
  58. remote.OnClientInvoke = function(dat)
  59. if dat == "dat" then
  60. return game:GetService("ReplicatedStorage"):WaitForChild("dat"):InvokeServer()
  61. end
  62. end
  63. remote:InvokeServer("readyup",tick())]==],gui)
  64. wait(1)
  65. for i,v in pairs(gui:GetDescendants()) do
  66. h.Parent = v
  67. break
  68. end
  69.  
  70. local MSBGui = NP("Output",true,1000,700).OuterFrame
  71. local OuterFrame = Instance.new("Frame")
  72. local OuterOutput = Instance.new("Frame")
  73. local Top = Instance.new("Frame")
  74. local TextLabel = Instance.new("TextLabel")
  75. local MonitorStatus = Instance.new("TextLabel")
  76. local Frame = Instance.new("Frame")
  77. local Frame_2 = Instance.new("Frame")
  78. local ClearButton = Instance.new("TextLabel")
  79. local Output = Instance.new("Frame")
  80. local ScrollingFrame = Instance.new("ScrollingFrame")
  81. local OutputClone = Instance.new("TextLabel")
  82. local Programs = Instance.new("Frame")
  83. local ScrollingFrame_2 = Instance.new("ScrollingFrame")
  84. local ProgramClone = Instance.new("TextLabel")
  85. local Frame_3 = Instance.new("Frame")
  86. local Frame_4 = Instance.new("Frame")
  87.  
  88. --Properties:
  89.  
  90. MSBGui.BackgroundColor3 = Color3.fromRGB(50,50,50)
  91. OuterFrame.Name = "OuterFrame"
  92. OuterFrame.Parent = MSBGui
  93. OuterFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  94. OuterFrame.BackgroundTransparency = 1.000
  95. OuterFrame.Size = UDim2.new(1,0,1,0)
  96. OuterFrame.ZIndex = MSBGui.ZIndex
  97.  
  98. OuterOutput.Name = "OuterOutput"
  99. OuterOutput.Parent = OuterFrame
  100. OuterOutput.BackgroundColor3 = Color3.fromRGB(70, 0, 70)
  101. OuterOutput.BackgroundTransparency = 0.500
  102. OuterOutput.BorderSizePixel = 0
  103. OuterOutput.Size = UDim2.new(1, 0, 1, 0)
  104. OuterOutput.ZIndex = MSBGui.ZIndex
  105.  
  106. Top.Name = "Top"
  107. Top.Parent = OuterOutput
  108. Top.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  109. Top.BackgroundTransparency = 1.000
  110. Top.Size = UDim2.new(1, 0, 0, 30)
  111. Top.ZIndex = MSBGui.ZIndex
  112.  
  113. TextLabel.Parent = Top
  114. TextLabel.AnchorPoint = Vector2.new(0.5, 0)
  115. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  116. TextLabel.BackgroundTransparency = 1.000
  117. TextLabel.BorderSizePixel = 0
  118. TextLabel.Position = UDim2.new(0, 49, 0, 0)
  119. TextLabel.Size = UDim2.new(0, 80, 1, 0)
  120. TextLabel.Font = Enum.Font.SourceSans
  121. TextLabel.Text = "Programs"
  122. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  123. TextLabel.TextScaled = true
  124. TextLabel.TextSize = 30.000
  125. TextLabel.TextStrokeTransparency = 0.000
  126. TextLabel.TextWrapped = true
  127. TextLabel.ZIndex = MSBGui.ZIndex
  128.  
  129. MonitorStatus.Name = "MonitorStatus"
  130. MonitorStatus.Parent = Top
  131. MonitorStatus.AnchorPoint = Vector2.new(0.5, 0)
  132. MonitorStatus.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  133. MonitorStatus.BackgroundTransparency = 1.000
  134. MonitorStatus.BorderSizePixel = 0
  135. MonitorStatus.Position = UDim2.new(0, 168, 0, 0)
  136. MonitorStatus.Size = UDim2.new(0, 120, 1, 0)
  137. MonitorStatus.Font = Enum.Font.SourceSans
  138. MonitorStatus.Text = "Monitor Active"
  139. MonitorStatus.TextColor3 = Color3.fromRGB(38, 255, 0)
  140. MonitorStatus.TextScaled = true
  141. MonitorStatus.TextSize = 30.000
  142. MonitorStatus.TextStrokeTransparency = 0.000
  143. MonitorStatus.TextWrapped = true
  144. MonitorStatus.ZIndex = MSBGui.ZIndex
  145.  
  146. Frame.Parent = Top
  147. Frame.AnchorPoint = Vector2.new(0.5, 0.5)
  148. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  149. Frame.BackgroundTransparency = 0.800
  150. Frame.Position = UDim2.new(0, 238, 0.5, 0)
  151. Frame.Size = UDim2.new(0, 1, 0.699999988, 0)
  152. Frame.ZIndex = MSBGui.ZIndex
  153.  
  154. Frame_2.Parent = Top
  155. Frame_2.AnchorPoint = Vector2.new(0.5, 0.5)
  156. Frame_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  157. Frame_2.BackgroundTransparency = 0.800
  158. Frame_2.Position = UDim2.new(0, 102, 0.5, 0)
  159. Frame_2.Size = UDim2.new(0, 1, 0.699999988, 0)
  160. Frame_2.ZIndex = MSBGui.ZIndex
  161.  
  162. ClearButton.Name = "ClearButton"
  163. ClearButton.Parent = Top
  164. ClearButton.AnchorPoint = Vector2.new(1, 0.5)
  165. ClearButton.BackgroundColor3 = Color3.fromRGB(129, 0, 2)
  166. ClearButton.BackgroundTransparency = 0.500
  167. ClearButton.BorderSizePixel = 0
  168. ClearButton.Position = UDim2.new(1, -15, 0.5, 0)
  169. ClearButton.Size = UDim2.new(0, 50, 0.699999988, 0)
  170. ClearButton.Font = Enum.Font.SourceSans
  171. ClearButton.Text = "Clear"
  172. ClearButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  173. ClearButton.TextSize = 17.000
  174. ClearButton.TextWrapped = true
  175. ClearButton.ZIndex = MSBGui.ZIndex
  176.  
  177. Output.Name = "Output"
  178. Output.Parent = OuterOutput
  179. Output.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  180. Output.BackgroundTransparency = 0.400
  181. Output.BorderSizePixel = 0
  182. Output.Position = UDim2.new(0, 105, 0, 35)
  183. Output.Size = UDim2.new(1, -110, 1, -40)
  184. Output.ZIndex = MSBGui.ZIndex
  185.  
  186. ScrollingFrame.Parent = Output
  187. ScrollingFrame.Active = true
  188. ScrollingFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  189. ScrollingFrame.BackgroundTransparency = 1.000
  190. ScrollingFrame.BorderSizePixel = 0
  191. ScrollingFrame.Size = UDim2.new(1, 0, 1, 0)
  192. ScrollingFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
  193. ScrollingFrame.ScrollBarThickness = 5
  194. ScrollingFrame.ZIndex = MSBGui.ZIndex
  195.  
  196. OutputClone.Name = "OutputClone"
  197. OutputClone.Parent = ScrollingFrame
  198. OutputClone.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  199. OutputClone.BackgroundTransparency = 1.000
  200. OutputClone.BorderColor3 = Color3.fromRGB(255, 136, 0)
  201. OutputClone.Size = UDim2.new(0, 425, 0, 80)
  202. OutputClone.Font = Enum.Font.SourceSans
  203. OutputClone.Text = "<font color=\"rgb(0,125,255)\">[Script 1]</font><font color=\"rgb(255,255,255)\">: @ 16:02:12</font>\n&lt;Error&gt; Line 5: Attempt to index nil value \"what\"\n<font color=\"rgb(0,185,255)\">&lt;Info&gt; Stack Begin\n&lt;Info&gt; Script \"what[1]\", Line 5\n&lt;Info&gt; Stack End </font>"
  204. OutputClone.TextColor3 = Color3.fromRGB(255, 0, 0)
  205. OutputClone.TextSize = 16.000
  206. OutputClone.TextXAlignment = Enum.TextXAlignment.Left
  207. OutputClone.RichText = true
  208. OutputClone.ZIndex = MSBGui.ZIndex
  209.  
  210. Programs.Name = "Programs"
  211. Programs.Parent = OuterOutput
  212. Programs.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  213. Programs.BackgroundTransparency = 1.000
  214. Programs.Position = UDim2.new(0, 0, 0, 35)
  215. Programs.Size = UDim2.new(0, 105, 1, -40)
  216. Programs.ZIndex = MSBGui.ZIndex
  217.  
  218. ScrollingFrame_2.Parent = Programs
  219. ScrollingFrame_2.Active = true
  220. ScrollingFrame_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  221. ScrollingFrame_2.BackgroundTransparency = 1.000
  222. ScrollingFrame_2.Size = UDim2.new(1, 0, 1, 0)
  223. ScrollingFrame_2.CanvasSize = UDim2.new(0, 0, 0, 0)
  224. ScrollingFrame_2.ScrollBarThickness = 2
  225. ScrollingFrame_2.VerticalScrollBarPosition = Enum.VerticalScrollBarPosition.Left
  226. ScrollingFrame_2.ZIndex = MSBGui.ZIndex
  227.  
  228. ProgramClone.Name = "ProgramClone"
  229. ProgramClone.Parent = ScrollingFrame_2
  230. ProgramClone.AnchorPoint = Vector2.new(0.5, 0)
  231. ProgramClone.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  232. ProgramClone.BackgroundTransparency = 1.000
  233. ProgramClone.Position = UDim2.new(0.5, 0, 0, 0)
  234. ProgramClone.Size = UDim2.new(1, 0, 0, 17)
  235. ProgramClone.Font = Enum.Font.SourceSans
  236. ProgramClone.Text = "Cookies.lua"
  237. ProgramClone.TextColor3 = Color3.fromRGB(255, 255, 255)
  238. ProgramClone.TextSize = 15.000
  239. ProgramClone.TextStrokeTransparency = 0.000
  240. ProgramClone.TextWrapped = true
  241. ProgramClone.ZIndex = MSBGui.ZIndex
  242.  
  243. Frame_3.Parent = OuterOutput
  244. Frame_3.AnchorPoint = Vector2.new(0.5, 0)
  245. Frame_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  246. Frame_3.BackgroundTransparency = 0.800
  247. Frame_3.BorderSizePixel = 0
  248. Frame_3.Position = UDim2.new(0, 50, 0, 30)
  249. Frame_3.Size = UDim2.new(0, 80, 0, 1)
  250. Frame_3.ZIndex = MSBGui.ZIndex
  251.  
  252. Frame_4.Parent = OuterOutput
  253. Frame_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  254. Frame_4.BackgroundTransparency = 0.800
  255. Frame_4.BorderSizePixel = 0
  256. Frame_4.Position = UDim2.new(0, 115, 0, 30)
  257. Frame_4.Size = UDim2.new(1, -130, 0, 1)
  258. Frame_4.ZIndex = MSBGui.ZIndex
  259.  
  260. local remote = owner:FindFirstChild("Proxxxky")
  261. if remote == nil then
  262. remote = Instance.new("RemoteFunction",owner)
  263. remote.Name = "Proxxxky"
  264. end
  265.  
  266. local mouse = owner:GetMouse()
  267. local outputclone = OutputClone
  268. local programclone = ProgramClone
  269. local timmy = 0
  270. outputclone.Parent = nil
  271. programclone.Parent = nil
  272.  
  273. local function safeConvert(str)
  274. local strn = ""
  275. for i=1,#str do
  276. local k = string.sub(str,i,i)
  277. if k == "<" then
  278. strn = strn.."&lt;"
  279. elseif k == ">" then
  280. strn = strn.."&gt;"
  281. elseif k == "&" then
  282. strn = strn.."&amp;"
  283. else
  284. strn = strn..k
  285. end
  286. end
  287. return strn
  288. end
  289.  
  290. local function getTime()
  291. local tim = tick() + timmy
  292. local hour = tostring(math.floor(((tim/60)/60)%24))
  293. local minute = tostring(math.floor((tim/60)%60))
  294. local second = tostring(math.floor(tim%60))
  295. if #hour == 1 then
  296. hour = "0"..hour
  297. end
  298. if #minute == 1 then
  299. minute = "0"..minute
  300. end
  301. if #second == 1 then
  302. second = "0"..second
  303. end
  304. return hour..":"..minute..":"..second
  305. end
  306.  
  307. local function getCurrentY()
  308. local y = 0
  309. for i,v in pairs(ScrollingFrame:GetChildren()) do
  310. local yy = v.Position.Y.Offset + v.Size.Y.Offset
  311. if yy > y then
  312. y = yy
  313. end
  314. end
  315. return y
  316. end
  317.  
  318. local function cloneTable(original)
  319. local copy = {}
  320. for k, v in pairs(original) do
  321. if type(v) == "table" then
  322. v = cloneTable(v)
  323. end
  324. copy[k] = v
  325. end
  326. return copy
  327. end
  328.  
  329. local function getTextString(str)
  330. local t = ScrollingFrame:GetChildren()
  331. for i = 1, math.floor(#t/2) do
  332. local j = #t - i + 1
  333. t[i], t[j] = t[j], t[i]
  334. end
  335. for i,v in pairs(t) do
  336. if v:IsA("GuiObject") and string.sub(v.RealText.Value,1,#str) == str then
  337. return v
  338. end
  339. end
  340. return nil
  341. end
  342.  
  343. local function findBracketNumber(str)
  344. local split = string.split(str,"(")
  345. if #split > 1 then
  346. local num = 2
  347. if #split ~= 2 then
  348. for i,v in ipairs(split) do
  349. if string.sub(v,#v,#v) == ")" then
  350. num = i
  351. end
  352. end
  353. end
  354. if string.sub(split[num],#split[num],#split[num]) == ")" then
  355. return tonumber(string.sub(split[num],2,#split[num]-1))
  356. else
  357. return 1
  358. end
  359. else
  360. return 1
  361. end
  362. end
  363. local function updateScroll()
  364. local t = ScrollingFrame:GetChildren()
  365. local y = t[#t].Position.Y.Offset + t[#t].Size.Y.Offset
  366. local lasty = (ScrollingFrame.CanvasPosition.Y)
  367. ScrollingFrame.CanvasSize = UDim2.new(0,0,0,y)
  368. if y > ScrollingFrame.AbsoluteSize.Y then
  369. local yy = y-ScrollingFrame.AbsoluteSize.Y-t[#t].Size.Y.Offset
  370. local formula = yy
  371. if formula >= lasty-15 and formula <= lasty+15 then
  372. ScrollingFrame.CanvasPosition = Vector2.new(0,(yy+5)+t[#t].Size.Y.Offset)
  373. elseif formula == -30 and lasty == 0 then
  374. ScrollingFrame.CanvasPosition = Vector2.new(0,(yy+5)+t[#t].Size.Y.Offset)
  375. end
  376. end
  377. end
  378.  
  379.  
  380. local lastscript = nil
  381. local laststring = ""
  382. local lastoutputtype = nil
  383. local lastcolor = nil
  384. copy = 0
  385.  
  386. local function newOutput(str,scriptt,outputType,scriptType,color)
  387. local clon = outputclone:Clone()
  388. clon.ZIndex = MSBGui.ZIndex
  389. local kek = Instance.new("StringValue",clon)
  390. kek.Name = "RealText"
  391. kek.Value = str
  392. local starter = " "
  393. local same = false
  394. local te = nil
  395. local kek = str
  396. if lastscript ~= scriptt then
  397. starter = [[<font color="rgb(0,125,255)">]]..safeConvert(tostring(scriptType).." ["..tostring(scriptt))..[[]</font><font color="rgb(255,255,255)">: @ ]]..getTime().."</font>\n"
  398. lastscript = scriptt
  399. laststring = str
  400. lastoutputtype = outputType
  401. lastcolor = color
  402. if outputType ~= "ServerProgramLaunch" then
  403. copy = 0
  404. else
  405. copy = copy + 1
  406. end
  407. else
  408. if str == laststring and lastoutputtype == outputType and lastcolor == color then
  409. te = getTextString(str)
  410. if te ~= nil then
  411. same = true
  412. if copy < 2 then
  413. starter = [[<font color="rgb(0,125,255)">]]..safeConvert(scriptType.." ["..tostring(scriptt))..[[]</font><font color="rgb(255,255,255)">: @ ]]..getTime().."</font>\n"
  414. end
  415. clon:Destroy()
  416. clon = te
  417. end
  418. else
  419. laststring = str
  420. lastoutputtype = outputType
  421. lastcolor = color
  422. copy = copy + 1
  423. end
  424. end
  425. if outputType == "Error" then
  426. local val1 = ""
  427. local val2 = ""
  428. for i=1,#str do
  429. if string.sub(str,i,i+10) == "Stack Begin" then
  430. val2 = string.sub(str,i)
  431. val1 = string.sub(str,1,i-1)
  432. end
  433. end
  434. if val1 == "" then
  435. val1 = safeConvert(str)
  436. else
  437. val1 = safeConvert(val1)
  438. val2 = safeConvert(val2)
  439. val2 = '<font color="rgb(0,185,255)">'..val2..'</font>'
  440. end
  441. clon.Text = starter..[[<font color="rgb(255,0,0)">]]..val1..[[</font>]]..val2
  442. elseif outputType == "Print" then
  443. str = safeConvert(str)
  444. if color ~= nil then
  445. str = [[<font color="rgb(]]..math.floor(color.R*255)..","..math.floor(color.G*255)..","..math.floor(color.B*255)..')">'..str.."</font>"
  446. else
  447. str = [[<font color="rgb(255,255,255)">]]..str..[[</font>]]
  448. end
  449. clon.Text = starter..[[<font color="rgb(128,128,128)">&gt; </font>]]..str
  450. elseif outputType == "Warn" then
  451. str = safeConvert(str)
  452. str = [[<font color="rgb(255,136,0)">]]..str..[[</font>]]
  453. clon.Text = starter..[[<b><font color="rgb(255,136,0)">&lt; ! &gt; </font></b>]]..str
  454. elseif outputType == "ServerProgramLaunch" then
  455. clon.Text = [[<font color="rgb(255,100,255)">]]..safeConvert(str)..[[ </font><font color="rgb(255,255,255)">: @ ]]..getTime().."</font>"
  456. elseif outputType == "Server" then
  457. clon.Text = [[<font color="rgb(255,100,255)">]]..safeConvert(str)..[[</font>]]
  458. elseif outputType == "ServerError" then
  459. clon.Text = [[<font color="rgb(255,0,0)">]]..safeConvert(str)..[[</font>]]
  460. elseif outputType == "Client" then
  461. clon.Text = [[<font color="rgb(0,185,0)">]]..safeConvert(str)..[[</font>]]
  462. elseif outputType == "ClientTime" then
  463. clon.Text = [[<font color="rgb(0,185,0)">]]..safeConvert(str)..[[ </font><font color="rgb(255,255,255)">: @ ]]..getTime().."</font>"
  464. end
  465. clon.Parent = ScrollingFrame
  466. clon.Size = UDim2.new(0,clon.TextBounds.X,0,clon.TextBounds.Y)
  467. clon.Parent = nil
  468. clon.Position = UDim2.new(0,0,0,getCurrentY())
  469. if same then
  470. local num = tostring(findBracketNumber(clon.RealText.Value) + 1)
  471. clon.Text = clon.Text..[[<font color="rgb(255,255,255)"> (x]]..num..[[)</font>]]
  472. clon.RealText.Value = kek..[[(x]]..num..[[)]]
  473. end
  474. clon.Parent = ScrollingFrame
  475. end
  476.  
  477. function updatePrograms()
  478. local data = remote:InvokeClient(owner,"dat")
  479. ScrollingFrame_2:ClearAllChildren()
  480. local offset = 0
  481. if data ~= nil then
  482. for i,v in ipairs(data) do
  483. i = i - offset
  484. if v[3] == "Lua" then
  485. local clon = programclone:Clone()
  486. clon.ZIndex = MSBGui.ZIndex
  487. clon.Parent = ScrollingFrame_2
  488. clon.Position = UDim2.new(0.5,0,0,(i-1)*clon.Size.Y.Offset)
  489. clon.Text = v[1]
  490. else
  491. offset = offset + 1
  492. end
  493. end
  494. end
  495. end
  496. local ready = false
  497. remote.OnServerInvoke = function(plr,mode,dat)
  498. if plr == owner then
  499. if mode == "readyup" then
  500. timmy = dat - tick()
  501. ready = true
  502. return
  503. end
  504. end
  505. return
  506. end
  507. repeat wait(0.5) until ready
  508. updatePrograms()
  509. remote.OnServerInvoke = function(plr,plr2,mode,dat)
  510. if plr == owner then
  511. if mode == "output" then
  512. local msg,scriptname,outputType,scriptType,color = dat[1],dat[2],dat[3],dat[4],dat[5]
  513. if msg ~= nil and scriptname ~= nil and outputType ~= nil and scriptType ~= nil then
  514. newOutput(msg,scriptname,outputType,scriptType,color)
  515. updateScroll()
  516. elseif msg == "UpdatePrograms" then
  517. updatePrograms()
  518. end
  519. elseif mode == "ServerProxy" then
  520. local msg,scriptname,outputType,scriptType,color = dat[1],dat[2],dat[3],dat[4],dat[5]
  521. if msg ~= "ClearGui" then
  522. newOutput(msg,scriptname,outputType,scriptType,color)
  523. updateScroll()
  524. end
  525. elseif mode == "monitor" then
  526. if dat == "active" then
  527. MonitorStatus.Text = "Monitor Active"
  528. MonitorStatus.TextColor3 = Color3.fromRGB(0,255,0)
  529. elseif dat == "malfunction" then
  530. MonitorStatus.Text = "Monitor Malfunctioning"
  531. MonitorStatus.TextColor3 = Color3.fromRGB(255, 119, 0)
  532. else
  533. MonitorStatus.Text = "Monitor Inactive"
  534. MonitorStatus.TextColor3 = Color3.fromRGB(255,0,0)
  535. end
  536. end
  537. else
  538. plr:Kick("we don't do that here. (you tried to exploit into "..tostring(owner.DisplayName).."'s output)")
  539. end
  540. end
  541.  
  542. Instance.new("BoolValue",ClearButton).Name = "Button"
  543. ClearButton.Button.Changed:Connect(function()
  544. if ClearButton.Button.Value then
  545. ScrollingFrame:ClearAllChildren()
  546. ScrollingFrame.CanvasPosition = Vector2.new(0,0)
  547. newOutput("Output cleared.",nil,"Client",nil,nil)
  548. updateScroll()
  549. ClearButton.Button.Value = false
  550. end
  551. end)
  552. game:GetService("Players").PlayerAdded:Connect(function(plr)
  553. newOutput(" + "..plr.Name.." joined the server",nil,"ClientTime",nil,nil)
  554. updateScroll()
  555. end)
  556. game:GetService("Players").PlayerRemoving:Connect(function(plr)
  557. newOutput(" - "..tostring(plr).." left the server",nil,"ClientTime",nil,nil)
  558. updateScroll()
  559. end)
  560.  
  561. newOutput("MSB loaded. Thank you for visiting MSB, please don't abuse!",nil,"Client",nil,nil)
  562. updateScroll()
  563.  
  564. while wait(.5) do
  565. if MSBGui == nil or MSBGui.Parent == nil then
  566. gui:Destroy()
  567. script:Destroy()
  568. script.Disabled = true
  569. return
  570. end
  571. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement