SaveText.Ru

dex explorer
  1. CreateGui = function()
  2. local NewGuiPart1 = Instance.new("ScreenGui")
  3. local NewGuiPart2 = Instance.new("Frame")
  4. local NewGuiPart3 = Instance.new("Frame")
  5. local NewGuiPart4 = Instance.new("TextLabel")
  6. local NewGuiPart5 = Instance.new("TextBox")
  7. local NewGuiPart6 = Instance.new("Frame")
  8. local NewGuiPart7 = Instance.new("Frame")
  9. local NewGuiPart8 = Instance.new("TextButton")
  10. local NewGuiPart9 = Instance.new("TextLabel")
  11. local NewGuiPart10 = Instance.new("TextLabel")
  12. local NewGuiPart11 = Instance.new("ImageLabel")
  13. local NewGuiPart12 = Instance.new("Frame")
  14. local NewGuiPart13 = Instance.new("Frame")
  15. local NewGuiPart14 = Instance.new("Frame")
  16. local NewGuiPart15 = Instance.new("TextButton")
  17. local NewGuiPart16 = Instance.new("ImageLabel")
  18. local NewGuiPart17 = Instance.new("TextButton")
  19. local NewGuiPart18 = Instance.new("ImageLabel")
  20. local NewGuiPart19 = Instance.new("TextButton")
  21. local NewGuiPart20 = Instance.new("ImageLabel")
  22. local NewGuiPart21 = Instance.new("TextButton")
  23. local NewGuiPart22 = Instance.new("ImageLabel")
  24. local NewGuiPart23 = Instance.new("TextButton")
  25. local NewGuiPart24 = Instance.new("ImageLabel")
  26. local NewGuiPart25 = Instance.new("TextButton")
  27. local NewGuiPart26 = Instance.new("ImageLabel")
  28. local NewGuiPart27 = Instance.new("TextButton")
  29. local NewGuiPart28 = Instance.new("Frame")
  30. local NewGuiPart29 = Instance.new("Frame")
  31. local NewGuiPart30 = Instance.new("TextLabel")
  32. local NewGuiPart31 = Instance.new("Frame")
  33. local NewGuiPart32 = Instance.new("TextLabel")
  34. local NewGuiPart33 = Instance.new("TextLabel")
  35. local NewGuiPart34 = Instance.new("TextButton")
  36. local NewGuiPart35 = Instance.new("TextLabel")
  37. local NewGuiPart36 = Instance.new("TextLabel")
  38. local NewGuiPart37 = Instance.new("Frame")
  39. local NewGuiPart38 = Instance.new("Frame")
  40. local NewGuiPart39 = Instance.new("TextLabel")
  41. local NewGuiPart40 = Instance.new("Frame")
  42. local NewGuiPart41 = Instance.new("TextButton")
  43. local NewGuiPart42 = Instance.new("TextLabel")
  44. local NewGuiPart43 = Instance.new("TextButton")
  45. local NewGuiPart44 = Instance.new("TextBox")
  46. local NewGuiPart45 = Instance.new("TextButton")
  47. local NewGuiPart46 = Instance.new("TextLabel")
  48. local NewGuiPart47 = Instance.new("TextLabel")
  49. local NewGuiPart48 = Instance.new("Frame")
  50. local NewGuiPart49 = Instance.new("TextLabel")
  51. local NewGuiPart50 = Instance.new("Frame")
  52. local NewGuiPart51 = Instance.new("TextButton")
  53. local NewGuiPart52 = Instance.new("TextLabel")
  54. local NewGuiPart53 = Instance.new("TextButton")
  55. local NewGuiPart54 = Instance.new("Frame")
  56. local NewGuiPart55 = Instance.new("TextLabel")
  57. local NewGuiPart56 = Instance.new("Frame")
  58. local NewGuiPart57 = Instance.new("TextLabel")
  59. local NewGuiPart58 = Instance.new("TextButton")
  60. local NewGuiPart59 = Instance.new("Frame")
  61. local NewGuiPart60 = Instance.new("TextLabel")
  62. local NewGuiPart61 = Instance.new("Frame")
  63. local NewGuiPart62 = Instance.new("TextLabel")
  64. local NewGuiPart63 = Instance.new("ScrollingFrame")
  65. local NewGuiPart64 = Instance.new("TextButton")
  66. local NewGuiPart65 = Instance.new("TextLabel")
  67. local NewGuiPart66 = Instance.new("TextLabel")
  68. local NewGuiPart67 = Instance.new("TextButton")
  69. local NewGuiPart68 = Instance.new("TextButton")
  70. local NewGuiPart69 = Instance.new("Frame")
  71. local NewGuiPart70 = Instance.new("TextButton")
  72. local NewGuiPart71 = Instance.new("TextBox")
  73. local NewGuiPart72 = Instance.new("TextButton")
  74. local NewGuiPart73 = Instance.new("TextButton")
  75. local NewGuiPart74 = Instance.new("Frame")
  76. local NewGuiPart75 = Instance.new("Frame")
  77. local NewGuiPart76 = Instance.new("TextButton")
  78. local NewGuiPart77 = Instance.new("ScrollingFrame")
  79. local NewGuiPart78 = Instance.new("Frame")
  80. local NewGuiPart79 = Instance.new("TextLabel")
  81. local NewGuiPart80 = Instance.new("TextLabel")
  82. local NewGuiPart81 = Instance.new("TextLabel")
  83. local NewGuiPart82 = Instance.new("Frame")
  84. local NewGuiPart83 = Instance.new("TextLabel")
  85. local NewGuiPart84 = Instance.new("Frame")
  86. local NewGuiPart85 = Instance.new("Frame")
  87. local NewGuiPart86 = Instance.new("Frame")
  88. local NewGuiPart87 = Instance.new("ImageButton")
  89. local NewGuiPart88 = Instance.new("Frame")
  90. local NewGuiPart89 = Instance.new("Frame")
  91. local NewGuiPart90 = Instance.new("Frame")
  92. local NewGuiPart91 = Instance.new("Frame")
  93. local NewGuiPart92 = Instance.new("Frame")
  94. local NewGuiPart93 = Instance.new("ImageButton")
  95. local NewGuiPart94 = Instance.new("Frame")
  96. local NewGuiPart95 = Instance.new("Frame")
  97. local NewGuiPart96 = Instance.new("Frame")
  98. local NewGuiPart97 = Instance.new("Frame")
  99. local NewGuiPart98 = Instance.new("Frame")
  100. local NewGuiPart99 = Instance.new("TextButton")
  101. local NewGuiPart100 = Instance.new("Frame")
  102. local NewGuiPart101 = Instance.new("Frame")
  103. local NewGuiPart102 = Instance.new("TextButton")
  104. local NewGuiPart103 = Instance.new("TextButton")
  105. local NewGuiPart104 = Instance.new("TextButton")
  106. local NewGuiPart105 = Instance.new("Frame")
  107. local NewGuiPart106 = Instance.new("Frame")
  108. local NewGuiPart107 = Instance.new("TextLabel")
  109. local NewGuiPart108 = Instance.new("TextLabel")
  110. local NewGuiPart109 = Instance.new("TextLabel")
  111. local NewGuiPart110 = Instance.new("ImageLabel")
  112. local NewGuiPart111 = Instance.new("Frame")
  113. local NewGuiPart112 = Instance.new("Frame")
  114. local NewGuiPart113 = Instance.new("TextLabel")
  115. local NewGuiPart114 = Instance.new("Frame")
  116. local NewGuiPart115 = Instance.new("Frame")
  117. local NewGuiPart116 = Instance.new("TextLabel")
  118. local NewGuiPart117 = Instance.new("TextLabel")
  119. local NewGuiPart118 = Instance.new("TextButton")
  120. local NewGuiPart119 = Instance.new("TextLabel")
  121. local NewGuiPart120 = Instance.new("TextLabel")
  122. local NewGuiPart121 = Instance.new("Frame")
  123. local NewGuiPart122 = Instance.new("TextLabel")
  124. local NewGuiPart123 = Instance.new("TextLabel")
  125. local NewGuiPart124 = Instance.new("TextButton")
  126. local NewGuiPart125 = Instance.new("TextLabel")
  127. local NewGuiPart126 = Instance.new("TextLabel")
  128. local NewGuiPart127 = Instance.new("Frame")
  129. local NewGuiPart128 = Instance.new("TextLabel")
  130. local NewGuiPart129 = Instance.new("TextLabel")
  131. local NewGuiPart130 = Instance.new("TextButton")
  132. local NewGuiPart131 = Instance.new("TextLabel")
  133. local NewGuiPart132 = Instance.new("TextLabel")
  134. local NewGuiPart133 = Instance.new("Frame")
  135. local NewGuiPart134 = Instance.new("TextLabel")
  136. local NewGuiPart135 = Instance.new("TextLabel")
  137. local NewGuiPart136 = Instance.new("TextButton")
  138. local NewGuiPart137 = Instance.new("TextLabel")
  139. local NewGuiPart138 = Instance.new("TextLabel")
  140. local NewGuiPart139 = Instance.new("TextLabel")
  141. local NewGuiPart140 = Instance.new("Frame")
  142. local NewGuiPart141 = Instance.new("Frame")
  143. local NewGuiPart142 = Instance.new("TextLabel")
  144. local NewGuiPart143 = Instance.new("TextButton")
  145. local NewGuiPart144 = Instance.new("TextBox")
  146. local NewGuiPart145 = Instance.new("Frame")
  147. local NewGuiPart146 = Instance.new("TextButton")
  148. local NewGuiPart147 = Instance.new("TextLabel")
  149. local NewGuiPart148 = Instance.new("TextLabel")
  150. local NewGuiPart149 = Instance.new("Frame")
  151. local NewGuiPart150 = Instance.new("Frame")
  152. local NewGuiPart151 = Instance.new("TextLabel")
  153. local NewGuiPart152 = Instance.new("TextLabel")
  154. local NewGuiPart153 = Instance.new("BindableFunction")
  155. local NewGuiPart154 = Instance.new("BindableFunction")
  156. local NewGuiPart155 = Instance.new("BindableFunction")
  157. local NewGuiPart156 = Instance.new("BindableFunction")
  158. local NewGuiPart157 = Instance.new("BindableEvent")
  159. local NewGuiPart158 = Instance.new("BindableFunction")
  160. local NewGuiPart159 = Instance.new("BindableFunction")
  161. local NewGuiPart160 = Instance.new("BindableEvent")
  162. local NewGuiPart161 = Instance.new("BindableFunction")
  163. local NewGuiPart162 = Instance.new("BindableFunction")
  164. local NewGuiPart163 = Instance.new("BindableEvent")
  165. -- Properties
  166.  
  167. NewGuiPart1.Name = "Dex"
  168.  
  169. NewGuiPart2.Name = "PropertiesFrame"
  170. NewGuiPart2.Parent = NewGuiPart1
  171. NewGuiPart2.Active = true
  172. NewGuiPart2.BackgroundColor3 = Color3.new(1, 1, 1)
  173. NewGuiPart2.BackgroundTransparency = 0.10000000149012
  174. NewGuiPart2.BorderColor3 = Color3.new(0.74902, 0.74902, 0.74902)
  175. NewGuiPart2.Position = UDim2.new(1, 0, 0.5, 36)
  176. NewGuiPart2.Size = UDim2.new(0, 300, 0.5, -36)
  177.  
  178. NewGuiPart158.Name = "GetApi"
  179. NewGuiPart158.Parent = NewGuiPart2
  180. NewGuiPart158.Archivable = true
  181.  
  182. NewGuiPart159.Name = "GetAwaiting"
  183. NewGuiPart159.Parent = NewGuiPart2
  184. NewGuiPart159.Archivable = true
  185.  
  186. NewGuiPart160.Name = "SetAwaiting"
  187. NewGuiPart160.Parent = NewGuiPart2
  188. NewGuiPart160.Archivable = true
  189.  
  190. NewGuiPart3.Name = "Header"
  191. NewGuiPart3.Parent = NewGuiPart2
  192. NewGuiPart3.BackgroundColor3 = Color3.new(0.913726, 0.913726, 0.913726)
  193. NewGuiPart3.BorderColor3 = Color3.new(0.584314, 0.584314, 0.584314)
  194. NewGuiPart3.Position = UDim2.new(0, 0, 0, -36)
  195. NewGuiPart3.Size = UDim2.new(1, 0, 0, 35)
  196.  
  197. NewGuiPart4.Parent = NewGuiPart3
  198. NewGuiPart4.BackgroundTransparency = 1
  199. NewGuiPart4.Position = UDim2.new(0, 4, 0, 0)
  200. NewGuiPart4.Size = UDim2.new(1, -4, 0.5, 0)
  201. NewGuiPart4.Font = Enum.Font.SourceSans
  202. NewGuiPart4.FontSize = Enum.FontSize.Size14
  203. NewGuiPart4.Text = "Properties"
  204. NewGuiPart4.TextColor3 = Color3.new(0, 0, 0)
  205. NewGuiPart4.TextXAlignment = Enum.TextXAlignment.Left
  206.  
  207. NewGuiPart5.Parent = NewGuiPart3
  208. NewGuiPart5.BackgroundTransparency = 0.80000001192093
  209. NewGuiPart5.Position = UDim2.new(0, 4, 0.5, 0)
  210. NewGuiPart5.Size = UDim2.new(1, -8, 0.5, -3)
  211. NewGuiPart5.Font = Enum.Font.SourceSans
  212. NewGuiPart5.FontSize = Enum.FontSize.Size14
  213. NewGuiPart5.Text = "Search Properties"
  214. --NewGuiPart5.TextColor3 = Color3.new(0, 0, 0)
  215. NewGuiPart5.TextXAlignment = Enum.TextXAlignment.Left
  216.  
  217. NewGuiPart6.Name = "ExplorerPanel"
  218. NewGuiPart6.Parent = NewGuiPart1
  219. NewGuiPart6.BackgroundColor3 = Color3.new(1, 1, 1)
  220. NewGuiPart6.BackgroundTransparency = 0.10000000149012
  221. NewGuiPart6.BorderColor3 = Color3.new(0.74902, 0.74902, 0.74902)
  222. NewGuiPart6.Position = UDim2.new(1, 0, 0, 0)
  223. NewGuiPart6.Size = UDim2.new(0, 300, 0.5, 0)
  224.  
  225. NewGuiPart153.Name = "GetOption"
  226. NewGuiPart153.Parent = NewGuiPart6
  227. NewGuiPart153.Archivable = true
  228.  
  229. NewGuiPart154.Name = "GetSelection"
  230. NewGuiPart154.Parent = NewGuiPart6
  231. NewGuiPart154.Archivable = true
  232.  
  233. NewGuiPart155.Name = "SetOption"
  234. NewGuiPart155.Parent = NewGuiPart6
  235. NewGuiPart155.Archivable = true
  236.  
  237. NewGuiPart156.Name = "SetSelection"
  238. NewGuiPart156.Parent = NewGuiPart6
  239. NewGuiPart156.Archivable = true
  240.  
  241. NewGuiPart157.Name = "SelectionChanged"
  242. NewGuiPart157.Parent = NewGuiPart6
  243. NewGuiPart157.Archivable = true
  244.  
  245. NewGuiPart7.Name = "SideMenu"
  246. NewGuiPart7.Parent = NewGuiPart1
  247. NewGuiPart7.BackgroundColor3 = Color3.new(0.913726, 0.913726, 0.913726)
  248. NewGuiPart7.BackgroundTransparency = 1
  249. NewGuiPart7.BorderColor3 = Color3.new(0.584314, 0.584314, 0.584314)
  250. NewGuiPart7.BorderSizePixel = 0
  251. NewGuiPart7.Position = UDim2.new(1, -330, 0, 0)
  252. NewGuiPart7.Size = UDim2.new(0, 30, 0, 180)
  253. NewGuiPart7.Visible = false
  254. NewGuiPart7.ZIndex = 2
  255.  
  256. NewGuiPart8.Name = "Toggle"
  257. NewGuiPart8.Parent = NewGuiPart7
  258. NewGuiPart8.Active = false
  259. NewGuiPart8.BackgroundColor3 = Color3.new(0.913726, 0.913726, 0.913726)
  260. NewGuiPart8.BorderSizePixel = 0
  261. NewGuiPart8.Position = UDim2.new(0, 0, 0, 60)
  262. NewGuiPart8.Size = UDim2.new(0, 30, 0, 30)
  263. NewGuiPart8.AutoButtonColor = false
  264. NewGuiPart8.Font = Enum.Font.SourceSans
  265. NewGuiPart8.FontSize = Enum.FontSize.Size24
  266. NewGuiPart8.Text = ">"
  267. NewGuiPart8.TextTransparency = 1
  268. NewGuiPart8.TextWrapped = true
  269.  
  270. NewGuiPart9.Name = "Title"
  271. NewGuiPart9.Parent = NewGuiPart7
  272. NewGuiPart9.BackgroundColor3 = Color3.new(1, 1, 1)
  273. NewGuiPart9.BackgroundTransparency = 1
  274. NewGuiPart9.Size = UDim2.new(0, 30, 0, 20)
  275. NewGuiPart9.ZIndex = 2
  276. NewGuiPart9.Font = Enum.Font.SourceSansBold
  277. NewGuiPart9.FontSize = Enum.FontSize.Size14
  278. NewGuiPart9.Text = "DEX"
  279. NewGuiPart9.TextWrapped = true
  280.  
  281. NewGuiPart10.Name = "Version"
  282. NewGuiPart10.Parent = NewGuiPart7
  283. NewGuiPart10.BackgroundColor3 = Color3.new(1, 1, 1)
  284. NewGuiPart10.BackgroundTransparency = 1
  285. NewGuiPart10.Position = UDim2.new(0, 0, 0, 15)
  286. NewGuiPart10.Size = UDim2.new(0, 30, 0, 20)
  287. NewGuiPart10.ZIndex = 2
  288. NewGuiPart10.Font = Enum.Font.SourceSansBold
  289. NewGuiPart10.FontSize = Enum.FontSize.Size12
  290. NewGuiPart10.Text = "V2.0.0"
  291. NewGuiPart10.TextWrapped = true
  292.  
  293. NewGuiPart11.Name = "Slant"
  294. NewGuiPart11.Parent = NewGuiPart7
  295. NewGuiPart11.BackgroundColor3 = Color3.new(1, 1, 1)
  296. NewGuiPart11.BackgroundTransparency = 1
  297. NewGuiPart11.Position = UDim2.new(0, 0, 0, 90)
  298. NewGuiPart11.Rotation = 180
  299. NewGuiPart11.Size = UDim2.new(0, 30, 0, 30)
  300. NewGuiPart11.Image = "rbxassetid://474172996"
  301. NewGuiPart11.ImageColor3 = Color3.new(0.913726, 0.913726, 0.913726)
  302.  
  303. NewGuiPart12.Name = "Main"
  304. NewGuiPart12.Parent = NewGuiPart7
  305. NewGuiPart12.BackgroundColor3 = Color3.new(0.913726, 0.913726, 0.913726)
  306. NewGuiPart12.BorderSizePixel = 0
  307. NewGuiPart12.Size = UDim2.new(0, 30, 0, 30)
  308.  
  309. NewGuiPart13.Name = "SlideOut"
  310. NewGuiPart13.Parent = NewGuiPart7
  311. NewGuiPart13.BackgroundColor3 = Color3.new(0.862745, 0.862745, 0.862745)
  312. NewGuiPart13.BackgroundTransparency = 1
  313. NewGuiPart13.BorderSizePixel = 0
  314. NewGuiPart13.ClipsDescendants = true
  315. NewGuiPart13.Position = UDim2.new(0, 0, 0, 30)
  316. NewGuiPart13.Size = UDim2.new(0, 30, 0, 150)
  317.  
  318. NewGuiPart14.Name = "SlideFrame"
  319. NewGuiPart14.Parent = NewGuiPart13
  320. NewGuiPart14.BackgroundColor3 = Color3.new(0.862745, 0.862745, 0.862745)
  321. NewGuiPart14.BorderSizePixel = 0
  322. NewGuiPart14.Position = UDim2.new(0, 0, 0, -150)
  323. NewGuiPart14.Size = UDim2.new(0, 30, 0, 150)
  324.  
  325. NewGuiPart15.Name = "Explorer"
  326. NewGuiPart15.Parent = NewGuiPart14
  327. NewGuiPart15.BackgroundColor3 = Color3.new(1, 1, 1)
  328. NewGuiPart15.BackgroundTransparency = 1
  329. NewGuiPart15.BorderSizePixel = 0
  330. NewGuiPart15.Position = UDim2.new(0, 0, 0, 120)
  331. NewGuiPart15.Size = UDim2.new(0, 30, 0, 30)
  332. NewGuiPart15.ZIndex = 2
  333. NewGuiPart15.AutoButtonColor = false
  334. NewGuiPart15.Font = Enum.Font.SourceSans
  335. NewGuiPart15.FontSize = Enum.FontSize.Size24
  336. NewGuiPart15.Text = ""
  337.  
  338. NewGuiPart16.Name = "Icon"
  339. NewGuiPart16.Parent = NewGuiPart15
  340. NewGuiPart16.BackgroundColor3 = Color3.new(1, 1, 1)
  341. NewGuiPart16.BackgroundTransparency = 1
  342. NewGuiPart16.Position = UDim2.new(0, 5, 0, 5)
  343. NewGuiPart16.Size = UDim2.new(0, 20, 0, 20)
  344. NewGuiPart16.ZIndex = 2
  345. NewGuiPart16.Image = "rbxassetid://472635937"
  346. NewGuiPart16.ImageColor3 = Color3.new(0.27451, 0.27451, 0.27451)
  347.  
  348. NewGuiPart17.Name = "SaveMap"
  349. NewGuiPart17.Parent = NewGuiPart14
  350. NewGuiPart17.BackgroundColor3 = Color3.new(1, 1, 1)
  351. NewGuiPart17.BackgroundTransparency = 1
  352. NewGuiPart17.BorderSizePixel = 0
  353. NewGuiPart17.Position = UDim2.new(0, 0, 0, 90)
  354. NewGuiPart17.Size = UDim2.new(0, 30, 0, 30)
  355. NewGuiPart17.ZIndex = 2
  356. NewGuiPart17.AutoButtonColor = false
  357. NewGuiPart17.Font = Enum.Font.SourceSans
  358. NewGuiPart17.FontSize = Enum.FontSize.Size24
  359. NewGuiPart17.Text = ""
  360.  
  361. NewGuiPart18.Name = "Icon"
  362. NewGuiPart18.Parent = NewGuiPart17
  363. NewGuiPart18.BackgroundColor3 = Color3.new(1, 1, 1)
  364. NewGuiPart18.BackgroundTransparency = 1
  365. NewGuiPart18.Position = UDim2.new(0, 5, 0, 5)
  366. NewGuiPart18.Size = UDim2.new(0, 20, 0, 20)
  367. NewGuiPart18.ZIndex = 2
  368. NewGuiPart18.Image = "rbxassetid://472636337"
  369. NewGuiPart18.ImageColor3 = Color3.new(0.27451, 0.27451, 0.27451)
  370.  
  371. NewGuiPart19.Name = "Settings"
  372. NewGuiPart19.Parent = NewGuiPart14
  373. NewGuiPart19.BackgroundColor3 = Color3.new(1, 1, 1)
  374. NewGuiPart19.BackgroundTransparency = 1
  375. NewGuiPart19.BorderSizePixel = 0
  376. NewGuiPart19.Position = UDim2.new(0, 0, 0, 30)
  377. NewGuiPart19.Size = UDim2.new(0, 30, 0, 30)
  378. NewGuiPart19.ZIndex = 2
  379. NewGuiPart19.AutoButtonColor = false
  380. NewGuiPart19.Font = Enum.Font.SourceSans
  381. NewGuiPart19.FontSize = Enum.FontSize.Size24
  382. NewGuiPart19.Text = ""
  383.  
  384. NewGuiPart20.Name = "Icon"
  385. NewGuiPart20.Parent = NewGuiPart19
  386. NewGuiPart20.BackgroundColor3 = Color3.new(1, 1, 1)
  387. NewGuiPart20.BackgroundTransparency = 1
  388. NewGuiPart20.Position = UDim2.new(0, 5, 0, 5)
  389. NewGuiPart20.Size = UDim2.new(0, 20, 0, 20)
  390. NewGuiPart20.ZIndex = 2
  391. NewGuiPart20.Image = "rbxassetid://472635774"
  392. NewGuiPart20.ImageColor3 = Color3.new(0.27451, 0.27451, 0.27451)
  393.  
  394. NewGuiPart21.Name = "Remotes"
  395. NewGuiPart21.Parent = NewGuiPart14
  396. NewGuiPart21.BackgroundColor3 = Color3.new(1, 1, 1)
  397. NewGuiPart21.BackgroundTransparency = 1
  398. NewGuiPart21.BorderSizePixel = 0
  399. NewGuiPart21.Position = UDim2.new(0, 0, 0, 60)
  400. NewGuiPart21.Size = UDim2.new(0, 30, 0, 30)
  401. NewGuiPart21.ZIndex = 2
  402. NewGuiPart21.AutoButtonColor = false
  403. NewGuiPart21.Font = Enum.Font.SourceSans
  404. NewGuiPart21.FontSize = Enum.FontSize.Size24
  405. NewGuiPart21.Text = ""
  406.  
  407. NewGuiPart22.Name = "Icon"
  408. NewGuiPart22.Parent = NewGuiPart21
  409. NewGuiPart22.BackgroundColor3 = Color3.new(1, 1, 1)
  410. NewGuiPart22.BackgroundTransparency = 1
  411. NewGuiPart22.Position = UDim2.new(0, 5, 0, 5)
  412. NewGuiPart22.Size = UDim2.new(0, 20, 0, 20)
  413. NewGuiPart22.ZIndex = 2
  414. NewGuiPart22.Image = "rbxassetid://472636187"
  415. NewGuiPart22.ImageColor3 = Color3.new(0.27451, 0.27451, 0.27451)
  416.  
  417. NewGuiPart23.Name = "About"
  418. NewGuiPart23.Parent = NewGuiPart14
  419. NewGuiPart23.BackgroundColor3 = Color3.new(1, 1, 1)
  420. NewGuiPart23.BackgroundTransparency = 1
  421. NewGuiPart23.BorderSizePixel = 0
  422. NewGuiPart23.Size = UDim2.new(0, 30, 0, 30)
  423. NewGuiPart23.ZIndex = 2
  424. NewGuiPart23.AutoButtonColor = false
  425. NewGuiPart23.Font = Enum.Font.SourceSans
  426. NewGuiPart23.FontSize = Enum.FontSize.Size24
  427. NewGuiPart23.Text = ""
  428.  
  429. NewGuiPart24.Name = "Icon"
  430. NewGuiPart24.Parent = NewGuiPart23
  431. NewGuiPart24.BackgroundColor3 = Color3.new(1, 1, 1)
  432. NewGuiPart24.BackgroundTransparency = 1
  433. NewGuiPart24.Position = UDim2.new(0, 5, 0, 5)
  434. NewGuiPart24.Size = UDim2.new(0, 20, 0, 20)
  435. NewGuiPart24.ZIndex = 2
  436. NewGuiPart24.Image = "rbxassetid://476354004"
  437. NewGuiPart24.ImageColor3 = Color3.new(0.27451, 0.27451, 0.27451)
  438.  
  439. NewGuiPart25.Name = "OpenScriptEditor"
  440. NewGuiPart25.Parent = NewGuiPart7
  441. NewGuiPart25.Active = false
  442. NewGuiPart25.BackgroundColor3 = Color3.new(0.913726, 0.913726, 0.913726)
  443. NewGuiPart25.BorderSizePixel = 0
  444. NewGuiPart25.Position = UDim2.new(0, 0, 0, 30)
  445. NewGuiPart25.Size = UDim2.new(0, 30, 0, 30)
  446. NewGuiPart25.ZIndex = 2
  447. NewGuiPart25.AutoButtonColor = false
  448. NewGuiPart25.Font = Enum.Font.SourceSans
  449. NewGuiPart25.FontSize = Enum.FontSize.Size24
  450. NewGuiPart25.Text = ""
  451.  
  452. NewGuiPart26.Name = "Icon"
  453. NewGuiPart26.Parent = NewGuiPart25
  454. NewGuiPart26.BackgroundColor3 = Color3.new(1, 1, 1)
  455. NewGuiPart26.BackgroundTransparency = 1
  456. NewGuiPart26.Position = UDim2.new(0, 5, 0, 5)
  457. NewGuiPart26.Size = UDim2.new(0, 20, 0, 20)
  458. NewGuiPart26.ZIndex = 2
  459. NewGuiPart26.Image = "rbxassetid://475456048"
  460. NewGuiPart26.ImageColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  461. NewGuiPart26.ImageTransparency = 1
  462.  
  463. NewGuiPart27.Name = "Toggle"
  464. NewGuiPart27.Parent = NewGuiPart1
  465. NewGuiPart27.BackgroundColor3 = Color3.new(0.913726, 0.913726, 0.913726)
  466. NewGuiPart27.BorderColor3 = Color3.new(0.584314, 0.584314, 0.584314)
  467. NewGuiPart27.Position = UDim2.new(1, 0, 0, 0)
  468. NewGuiPart27.Size = UDim2.new(0, 30, 0, 30)
  469. NewGuiPart27.Font = Enum.Font.SourceSans
  470. NewGuiPart27.FontSize = Enum.FontSize.Size24
  471. NewGuiPart27.Text = "<"
  472.  
  473. NewGuiPart28.Name = "SettingsPanel"
  474. NewGuiPart28.Parent = NewGuiPart1
  475. NewGuiPart28.BackgroundColor3 = Color3.new(1, 1, 1)
  476. NewGuiPart28.BackgroundTransparency = 0.10000000149012
  477. NewGuiPart28.BorderColor3 = Color3.new(0.74902, 0.74902, 0.74902)
  478. NewGuiPart28.Position = UDim2.new(1, 0, 0, 0)
  479. NewGuiPart28.Size = UDim2.new(0, 300, 1, 0)
  480.  
  481. NewGuiPart162.Name = "GetSetting"
  482. NewGuiPart162.Parent = NewGuiPart28
  483. NewGuiPart162.Archivable = true
  484.  
  485. NewGuiPart29.Name = "Header"
  486. NewGuiPart29.Parent = NewGuiPart28
  487. NewGuiPart29.BackgroundColor3 = Color3.new(0.913726, 0.913726, 0.913726)
  488. NewGuiPart29.BorderColor3 = Color3.new(0.584314, 0.584314, 0.584314)
  489. NewGuiPart29.Size = UDim2.new(1, 0, 0, 17)
  490.  
  491. NewGuiPart30.Parent = NewGuiPart29
  492. NewGuiPart30.BackgroundTransparency = 1
  493. NewGuiPart30.Position = UDim2.new(0, 4, 0, 0)
  494. NewGuiPart30.Size = UDim2.new(1, -4, 1, 0)
  495. NewGuiPart30.Font = Enum.Font.SourceSans
  496. NewGuiPart30.FontSize = Enum.FontSize.Size14
  497. NewGuiPart30.Text = "Settings"
  498. NewGuiPart30.TextColor3 = Color3.new(0, 0, 0)
  499. NewGuiPart30.TextXAlignment = Enum.TextXAlignment.Left
  500.  
  501. NewGuiPart31.Name = "SettingTemplate"
  502. NewGuiPart31.Parent = NewGuiPart28
  503. NewGuiPart31.BackgroundColor3 = Color3.new(1, 1, 1)
  504. NewGuiPart31.BackgroundTransparency = 1
  505. NewGuiPart31.Position = UDim2.new(0, 0, 0, 18)
  506. NewGuiPart31.Size = UDim2.new(1, 0, 0, 60)
  507. NewGuiPart31.Visible = false
  508.  
  509. NewGuiPart32.Name = "SName"
  510. NewGuiPart32.Parent = NewGuiPart31
  511. NewGuiPart32.BackgroundColor3 = Color3.new(1, 1, 1)
  512. NewGuiPart32.BackgroundTransparency = 1
  513. NewGuiPart32.Position = UDim2.new(0, 10, 0, 0)
  514. NewGuiPart32.Size = UDim2.new(1, -20, 0, 30)
  515. NewGuiPart32.Font = Enum.Font.SourceSans
  516. NewGuiPart32.FontSize = Enum.FontSize.Size18
  517. NewGuiPart32.Text = "SettingName"
  518. NewGuiPart32.TextXAlignment = Enum.TextXAlignment.Left
  519.  
  520. NewGuiPart33.Name = "Status"
  521. NewGuiPart33.Parent = NewGuiPart31
  522. NewGuiPart33.BackgroundColor3 = Color3.new(1, 1, 1)
  523. NewGuiPart33.BackgroundTransparency = 1
  524. NewGuiPart33.Position = UDim2.new(0, 60, 0, 30)
  525. NewGuiPart33.Size = UDim2.new(0, 50, 0, 15)
  526. NewGuiPart33.Font = Enum.Font.SourceSans
  527. NewGuiPart33.FontSize = Enum.FontSize.Size18
  528. NewGuiPart33.Text = "Off"
  529. NewGuiPart33.TextXAlignment = Enum.TextXAlignment.Left
  530.  
  531. NewGuiPart34.Name = "Change"
  532. NewGuiPart34.Parent = NewGuiPart31
  533. NewGuiPart34.BackgroundColor3 = Color3.new(0.862745, 0.862745, 0.862745)
  534. NewGuiPart34.BorderSizePixel = 0
  535. NewGuiPart34.Position = UDim2.new(0, 10, 0, 30)
  536. NewGuiPart34.Size = UDim2.new(0, 40, 0, 15)
  537. NewGuiPart34.Font = Enum.Font.SourceSans
  538. NewGuiPart34.FontSize = Enum.FontSize.Size14
  539. NewGuiPart34.Text = ""
  540.  
  541. NewGuiPart35.Name = "OnBar"
  542. NewGuiPart35.Parent = NewGuiPart34
  543. NewGuiPart35.BackgroundColor3 = Color3.new(0, 0.576471, 0.862745)
  544. NewGuiPart35.BorderSizePixel = 0
  545. NewGuiPart35.Size = UDim2.new(0, 0, 0, 15)
  546. NewGuiPart35.Font = Enum.Font.SourceSans
  547. NewGuiPart35.FontSize = Enum.FontSize.Size14
  548. NewGuiPart35.Text = ""
  549.  
  550. NewGuiPart36.Name = "Bar"
  551. NewGuiPart36.Parent = NewGuiPart34
  552. NewGuiPart36.BackgroundColor3 = Color3.new(0, 0, 0)
  553. NewGuiPart36.BorderSizePixel = 0
  554. NewGuiPart36.ClipsDescendants = true
  555. NewGuiPart36.Position = UDim2.new(0, -2, 0, -2)
  556. NewGuiPart36.Size = UDim2.new(0, 10, 0, 19)
  557. NewGuiPart36.Font = Enum.Font.SourceSans
  558. NewGuiPart36.FontSize = Enum.FontSize.Size14
  559. NewGuiPart36.Text = ""
  560.  
  561. NewGuiPart37.Name = "SettingList"
  562. NewGuiPart37.Parent = NewGuiPart28
  563. NewGuiPart37.BackgroundColor3 = Color3.new(1, 1, 1)
  564. NewGuiPart37.BackgroundTransparency = 1
  565. NewGuiPart37.Position = UDim2.new(0, 0, 0, 17)
  566. NewGuiPart37.Size = UDim2.new(1, 0, 1, -17)
  567.  
  568. NewGuiPart38.Name = "SaveInstance"
  569. NewGuiPart38.Parent = NewGuiPart1
  570. NewGuiPart38.Active = true
  571. NewGuiPart38.BackgroundColor3 = Color3.new(0.913726, 0.913726, 0.913726)
  572. NewGuiPart38.BorderColor3 = Color3.new(0.584314, 0.584314, 0.584314)
  573. NewGuiPart38.Draggable = true
  574. NewGuiPart38.Position = UDim2.new(0.300000012, 0, 0.300000012, 0)
  575. NewGuiPart38.Size = UDim2.new(0, 350, 0, 20)
  576. NewGuiPart38.Visible = false
  577. NewGuiPart38.ZIndex = 2
  578.  
  579. NewGuiPart39.Name = "Title"
  580. NewGuiPart39.Parent = NewGuiPart38
  581. NewGuiPart39.BackgroundTransparency = 1
  582. NewGuiPart39.Size = UDim2.new(1, 0, 1, 0)
  583. NewGuiPart39.ZIndex = 2
  584. NewGuiPart39.Font = Enum.Font.SourceSans
  585. NewGuiPart39.FontSize = Enum.FontSize.Size14
  586. NewGuiPart39.Text = "Save Instance"
  587. NewGuiPart39.TextColor3 = Color3.new(0, 0, 0)
  588. NewGuiPart39.TextXAlignment = Enum.TextXAlignment.Left
  589.  
  590. NewGuiPart40.Name = "MainWindow"
  591. NewGuiPart40.Parent = NewGuiPart38
  592. NewGuiPart40.BackgroundColor3 = Color3.new(1, 1, 1)
  593. NewGuiPart40.BackgroundTransparency = 0.10000000149012
  594. NewGuiPart40.BorderColor3 = Color3.new(0.74902, 0.74902, 0.74902)
  595. NewGuiPart40.Size = UDim2.new(1, 0, 0, 200)
  596.  
  597. NewGuiPart41.Name = "Save"
  598. NewGuiPart41.Parent = NewGuiPart40
  599. NewGuiPart41.BackgroundColor3 = Color3.new(1, 1, 1)
  600. NewGuiPart41.BackgroundTransparency = 0.5
  601. NewGuiPart41.BorderColor3 = Color3.new(0, 0, 0)
  602. NewGuiPart41.Position = UDim2.new(0.075000003, 0, 1, -40)
  603. NewGuiPart41.Size = UDim2.new(0.400000006, 0, 0, 30)
  604. NewGuiPart41.Font = Enum.Font.SourceSans
  605. NewGuiPart41.FontSize = Enum.FontSize.Size18
  606. NewGuiPart41.Text = "Save"
  607.  
  608. NewGuiPart42.Name = "Desc"
  609. NewGuiPart42.Parent = NewGuiPart40
  610. NewGuiPart42.BackgroundColor3 = Color3.new(1, 1, 1)
  611. NewGuiPart42.BackgroundTransparency = 1
  612. NewGuiPart42.Position = UDim2.new(0, 0, 0, 20)
  613. NewGuiPart42.Size = UDim2.new(1, 0, 0, 40)
  614. NewGuiPart42.Font = Enum.Font.SourceSans
  615. NewGuiPart42.FontSize = Enum.FontSize.Size14
  616. NewGuiPart42.Text = "This will save an instance to your PC. Type in the name for your instance. (.rbxmx will be added automatically.)"
  617. NewGuiPart42.TextWrapped = true
  618.  
  619. NewGuiPart43.Name = "Cancel"
  620. NewGuiPart43.Parent = NewGuiPart40
  621. NewGuiPart43.BackgroundColor3 = Color3.new(1, 1, 1)
  622. NewGuiPart43.BackgroundTransparency = 0.5
  623. NewGuiPart43.BorderColor3 = Color3.new(0, 0, 0)
  624. NewGuiPart43.Position = UDim2.new(0.524999976, 0, 1, -40)
  625. NewGuiPart43.Size = UDim2.new(0.400000006, 0, 0, 30)
  626. NewGuiPart43.Font = Enum.Font.SourceSans
  627. NewGuiPart43.FontSize = Enum.FontSize.Size18
  628. NewGuiPart43.Text = "Cancel"
  629.  
  630. NewGuiPart44.Name = "FileName"
  631. NewGuiPart44.Parent = NewGuiPart40
  632. NewGuiPart44.BackgroundColor3 = Color3.new(1, 1, 1)
  633. NewGuiPart44.BackgroundTransparency = 0.20000000298023
  634. NewGuiPart44.Position = UDim2.new(0.075000003, 0, 0.400000006, 0)
  635. NewGuiPart44.Size = UDim2.new(0.850000024, 0, 0, 30)
  636. NewGuiPart44.Font = Enum.Font.SourceSans
  637. NewGuiPart44.FontSize = Enum.FontSize.Size18
  638. NewGuiPart44.Text = ""
  639. NewGuiPart44.TextXAlignment = Enum.TextXAlignment.Left
  640.  
  641. NewGuiPart45.Name = "SaveObjects"
  642. NewGuiPart45.Parent = NewGuiPart40
  643. NewGuiPart45.BackgroundColor3 = Color3.new(1, 1, 1)
  644. NewGuiPart45.BackgroundTransparency = 0.60000002384186
  645. NewGuiPart45.Position = UDim2.new(0.075000003, 0, 0.625, 0)
  646. NewGuiPart45.Size = UDim2.new(0, 20, 0, 20)
  647. NewGuiPart45.ZIndex = 2
  648. NewGuiPart45.Font = Enum.Font.SourceSans
  649. NewGuiPart45.FontSize = Enum.FontSize.Size18
  650. NewGuiPart45.Text = ""
  651. NewGuiPart45.TextColor3 = Color3.new(1, 1, 1)
  652.  
  653. NewGuiPart46.Name = "enabled"
  654. NewGuiPart46.Parent = NewGuiPart45
  655. NewGuiPart46.BackgroundColor3 = Color3.new(0.380392, 0.380392, 0.380392)
  656. NewGuiPart46.BackgroundTransparency = 0.40000000596046
  657. NewGuiPart46.BorderSizePixel = 0
  658. NewGuiPart46.Position = UDim2.new(0, 3, 0, 3)
  659. NewGuiPart46.Size = UDim2.new(0, 14, 0, 14)
  660. NewGuiPart46.Font = Enum.Font.SourceSans
  661. NewGuiPart46.FontSize = Enum.FontSize.Size14
  662. NewGuiPart46.Text = ""
  663.  
  664. NewGuiPart47.Name = "Desc2"
  665. NewGuiPart47.Parent = NewGuiPart40
  666. NewGuiPart47.BackgroundColor3 = Color3.new(1, 1, 1)
  667. NewGuiPart47.BackgroundTransparency = 1
  668. NewGuiPart47.Position = UDim2.new(0.075000003, 30, 0.625, 0)
  669. NewGuiPart47.Size = UDim2.new(0.925000012, -30, 0, 20)
  670. NewGuiPart47.Font = Enum.Font.SourceSans
  671. NewGuiPart47.FontSize = Enum.FontSize.Size14
  672. NewGuiPart47.Text = "Save "Object" type values"
  673. NewGuiPart47.TextXAlignment = Enum.TextXAlignment.Left
  674.  
  675. NewGuiPart48.Name = "Confirmation"
  676. NewGuiPart48.Parent = NewGuiPart1
  677. NewGuiPart48.Active = true
  678. NewGuiPart48.BackgroundColor3 = Color3.new(0.913726, 0.913726, 0.913726)
  679. NewGuiPart48.BorderColor3 = Color3.new(0.584314, 0.584314, 0.584314)
  680. NewGuiPart48.Draggable = true
  681. NewGuiPart48.Position = UDim2.new(0.300000012, 0, 0.349999994, 0)
  682. NewGuiPart48.Size = UDim2.new(0, 350, 0, 20)
  683. NewGuiPart48.Visible = false
  684. NewGuiPart48.ZIndex = 3
  685.  
  686. NewGuiPart49.Name = "Title"
  687. NewGuiPart49.Parent = NewGuiPart48
  688. NewGuiPart49.BackgroundTransparency = 1
  689. NewGuiPart49.Size = UDim2.new(1, 0, 1, 0)
  690. NewGuiPart49.ZIndex = 3
  691. NewGuiPart49.Font = Enum.Font.SourceSans
  692. NewGuiPart49.FontSize = Enum.FontSize.Size14
  693. NewGuiPart49.Text = "Confirm"
  694. NewGuiPart49.TextColor3 = Color3.new(0, 0, 0)
  695. NewGuiPart49.TextXAlignment = Enum.TextXAlignment.Left
  696.  
  697. NewGuiPart50.Name = "MainWindow"
  698. NewGuiPart50.Parent = NewGuiPart48
  699. NewGuiPart50.BackgroundColor3 = Color3.new(1, 1, 1)
  700. NewGuiPart50.BackgroundTransparency = 0.10000000149012
  701. NewGuiPart50.BorderColor3 = Color3.new(0.74902, 0.74902, 0.74902)
  702. NewGuiPart50.Size = UDim2.new(1, 0, 0, 150)
  703. NewGuiPart50.ZIndex = 2
  704.  
  705. NewGuiPart51.Name = "Yes"
  706. NewGuiPart51.Parent = NewGuiPart50
  707. NewGuiPart51.BackgroundColor3 = Color3.new(1, 1, 1)
  708. NewGuiPart51.BackgroundTransparency = 0.5
  709. NewGuiPart51.BorderColor3 = Color3.new(0, 0, 0)
  710. NewGuiPart51.Position = UDim2.new(0.075000003, 0, 1, -40)
  711. NewGuiPart51.Size = UDim2.new(0.400000006, 0, 0, 30)
  712. NewGuiPart51.ZIndex = 2
  713. NewGuiPart51.Font = Enum.Font.SourceSans
  714. NewGuiPart51.FontSize = Enum.FontSize.Size18
  715. NewGuiPart51.Text = "Yes"
  716.  
  717. NewGuiPart52.Name = "Desc"
  718. NewGuiPart52.Parent = NewGuiPart50
  719. NewGuiPart52.BackgroundColor3 = Color3.new(1, 1, 1)
  720. NewGuiPart52.BackgroundTransparency = 1
  721. NewGuiPart52.Position = UDim2.new(0, 0, 0, 20)
  722. NewGuiPart52.Size = UDim2.new(1, 0, 0, 40)
  723. NewGuiPart52.ZIndex = 2
  724. NewGuiPart52.Font = Enum.Font.SourceSans
  725. NewGuiPart52.FontSize = Enum.FontSize.Size14
  726. NewGuiPart52.Text = "The file, FILENAME, already exists. Overwrite?"
  727. NewGuiPart52.TextWrapped = true
  728.  
  729. NewGuiPart53.Name = "No"
  730. NewGuiPart53.Parent = NewGuiPart50
  731. NewGuiPart53.BackgroundColor3 = Color3.new(1, 1, 1)
  732. NewGuiPart53.BackgroundTransparency = 0.5
  733. NewGuiPart53.BorderColor3 = Color3.new(0, 0, 0)
  734. NewGuiPart53.Position = UDim2.new(0.524999976, 0, 1, -40)
  735. NewGuiPart53.Size = UDim2.new(0.400000006, 0, 0, 30)
  736. NewGuiPart53.ZIndex = 2
  737. NewGuiPart53.Font = Enum.Font.SourceSans
  738. NewGuiPart53.FontSize = Enum.FontSize.Size18
  739. NewGuiPart53.Text = "No"
  740.  
  741. NewGuiPart54.Name = "Caution"
  742. NewGuiPart54.Parent = NewGuiPart1
  743. NewGuiPart54.Active = true
  744. NewGuiPart54.BackgroundColor3 = Color3.new(0.913726, 0.913726, 0.913726)
  745. NewGuiPart54.BorderColor3 = Color3.new(0.584314, 0.584314, 0.584314)
  746. NewGuiPart54.Draggable = true
  747. NewGuiPart54.Position = UDim2.new(0.300000012, 0, 0.300000012, 0)
  748. NewGuiPart54.Size = UDim2.new(0, 350, 0, 20)
  749. NewGuiPart54.Visible = false
  750. NewGuiPart54.ZIndex = 5
  751.  
  752. NewGuiPart55.Name = "Title"
  753. NewGuiPart55.Parent = NewGuiPart54
  754. NewGuiPart55.BackgroundTransparency = 1
  755. NewGuiPart55.Size = UDim2.new(1, 0, 1, 0)
  756. NewGuiPart55.ZIndex = 5
  757. NewGuiPart55.Font = Enum.Font.SourceSans
  758. NewGuiPart55.FontSize = Enum.FontSize.Size14
  759. NewGuiPart55.Text = "Caution"
  760. NewGuiPart55.TextColor3 = Color3.new(0, 0, 0)
  761. NewGuiPart55.TextXAlignment = Enum.TextXAlignment.Left
  762.  
  763. NewGuiPart56.Name = "MainWindow"
  764. NewGuiPart56.Parent = NewGuiPart54
  765. NewGuiPart56.BackgroundColor3 = Color3.new(1, 1, 1)
  766. NewGuiPart56.BackgroundTransparency = 0.10000000149012
  767. NewGuiPart56.BorderColor3 = Color3.new(0.74902, 0.74902, 0.74902)
  768. NewGuiPart56.Size = UDim2.new(1, 0, 0, 150)
  769. NewGuiPart56.ZIndex = 4
  770.  
  771. NewGuiPart57.Name = "Desc"
  772. NewGuiPart57.Parent = NewGuiPart56
  773. NewGuiPart57.BackgroundColor3 = Color3.new(1, 1, 1)
  774. NewGuiPart57.BackgroundTransparency = 1
  775. NewGuiPart57.Position = UDim2.new(0, 0, 0, 20)
  776. NewGuiPart57.Size = UDim2.new(1, 0, 0, 42)
  777. NewGuiPart57.ZIndex = 4
  778. NewGuiPart57.Font = Enum.Font.SourceSans
  779. NewGuiPart57.FontSize = Enum.FontSize.Size14
  780. NewGuiPart57.Text = "The file, FILENAME, already exists. Overwrite?"
  781. NewGuiPart57.TextWrapped = true
  782.  
  783. NewGuiPart58.Name = "Ok"
  784. NewGuiPart58.Parent = NewGuiPart56
  785. NewGuiPart58.BackgroundColor3 = Color3.new(1, 1, 1)
  786. NewGuiPart58.BackgroundTransparency = 0.5
  787. NewGuiPart58.BorderColor3 = Color3.new(0, 0, 0)
  788. NewGuiPart58.Position = UDim2.new(0.300000012, 0, 1, -40)
  789. NewGuiPart58.Size = UDim2.new(0.400000006, 0, 0, 30)
  790. NewGuiPart58.ZIndex = 4
  791. NewGuiPart58.Font = Enum.Font.SourceSans
  792. NewGuiPart58.FontSize = Enum.FontSize.Size18
  793. NewGuiPart58.Text = "Ok"
  794.  
  795. NewGuiPart59.Name = "CallRemote"
  796. NewGuiPart59.Parent = NewGuiPart1
  797. NewGuiPart59.Active = true
  798. NewGuiPart59.BackgroundColor3 = Color3.new(0.913726, 0.913726, 0.913726)
  799. NewGuiPart59.BorderColor3 = Color3.new(0.584314, 0.584314, 0.584314)
  800. NewGuiPart59.Draggable = true
  801. NewGuiPart59.Position = UDim2.new(0.300000012, 0, 0.300000012, 0)
  802. NewGuiPart59.Size = UDim2.new(0, 350, 0, 20)
  803. NewGuiPart59.Visible = false
  804. NewGuiPart59.ZIndex = 2
  805.  
  806. NewGuiPart60.Name = "Title"
  807. NewGuiPart60.Parent = NewGuiPart59
  808. NewGuiPart60.BackgroundTransparency = 1
  809. NewGuiPart60.Size = UDim2.new(1, 0, 1, 0)
  810. NewGuiPart60.ZIndex = 2
  811. NewGuiPart60.Font = Enum.Font.SourceSans
  812. NewGuiPart60.FontSize = Enum.FontSize.Size14
  813. NewGuiPart60.Text = "Call Remote"
  814. NewGuiPart60.TextColor3 = Color3.new(0, 0, 0)
  815. NewGuiPart60.TextXAlignment = Enum.TextXAlignment.Left
  816.  
  817. NewGuiPart61.Name = "MainWindow"
  818. NewGuiPart61.Parent = NewGuiPart59
  819. NewGuiPart61.BackgroundColor3 = Color3.new(1, 1, 1)
  820. NewGuiPart61.BackgroundTransparency = 0.10000000149012
  821. NewGuiPart61.BorderColor3 = Color3.new(0.74902, 0.74902, 0.74902)
  822. NewGuiPart61.Size = UDim2.new(1, 0, 0, 200)
  823.  
  824. NewGuiPart62.Name = "Desc"
  825. NewGuiPart62.Parent = NewGuiPart61
  826. NewGuiPart62.BackgroundColor3 = Color3.new(1, 1, 1)
  827. NewGuiPart62.BackgroundTransparency = 1
  828. NewGuiPart62.Position = UDim2.new(0, 0, 0, 20)
  829. NewGuiPart62.Size = UDim2.new(1, 0, 0, 20)
  830. NewGuiPart62.Font = Enum.Font.SourceSans
  831. NewGuiPart62.FontSize = Enum.FontSize.Size14
  832. NewGuiPart62.Text = "Arguments"
  833. NewGuiPart62.TextWrapped = true
  834.  
  835. NewGuiPart63.Name = "Arguments"
  836. NewGuiPart63.Parent = NewGuiPart61
  837. NewGuiPart63.BackgroundColor3 = Color3.new(1, 1, 1)
  838. NewGuiPart63.BackgroundTransparency = 1
  839. NewGuiPart63.Position = UDim2.new(0, 0, 0, 40)
  840. NewGuiPart63.Size = UDim2.new(1, 0, 0, 80)
  841. NewGuiPart63.BottomImage = "rbxasset://textures/blackBkg_square.png"
  842. NewGuiPart63.CanvasSize = UDim2.new(0, 0, 0, 0)
  843. NewGuiPart63.MidImage = "rbxasset://textures/blackBkg_square.png"
  844. NewGuiPart63.TopImage = "rbxasset://textures/blackBkg_square.png"
  845.  
  846. NewGuiPart64.Name = "DisplayReturned"
  847. NewGuiPart64.Parent = NewGuiPart61
  848. NewGuiPart64.BackgroundColor3 = Color3.new(1, 1, 1)
  849. NewGuiPart64.BackgroundTransparency = 0.60000002384186
  850. NewGuiPart64.Position = UDim2.new(0.075000003, 0, 0.625, 0)
  851. NewGuiPart64.Size = UDim2.new(0, 20, 0, 20)
  852. NewGuiPart64.ZIndex = 2
  853. NewGuiPart64.Font = Enum.Font.SourceSans
  854. NewGuiPart64.FontSize = Enum.FontSize.Size18
  855. NewGuiPart64.Text = ""
  856. NewGuiPart64.TextColor3 = Color3.new(1, 1, 1)
  857.  
  858. NewGuiPart65.Name = "enabled"
  859. NewGuiPart65.Parent = NewGuiPart64
  860. NewGuiPart65.BackgroundColor3 = Color3.new(0.380392, 0.380392, 0.380392)
  861. NewGuiPart65.BackgroundTransparency = 0.40000000596046
  862. NewGuiPart65.BorderSizePixel = 0
  863. NewGuiPart65.Position = UDim2.new(0, 3, 0, 3)
  864. NewGuiPart65.Size = UDim2.new(0, 14, 0, 14)
  865. NewGuiPart65.Visible = false
  866. NewGuiPart65.Font = Enum.Font.SourceSans
  867. NewGuiPart65.FontSize = Enum.FontSize.Size14
  868. NewGuiPart65.Text = ""
  869.  
  870. NewGuiPart66.Name = "Desc2"
  871. NewGuiPart66.Parent = NewGuiPart61
  872. NewGuiPart66.BackgroundColor3 = Color3.new(1, 1, 1)
  873. NewGuiPart66.BackgroundTransparency = 1
  874. NewGuiPart66.Position = UDim2.new(0.075000003, 30, 0.625, 0)
  875. NewGuiPart66.Size = UDim2.new(0.925000012, -30, 0, 20)
  876. NewGuiPart66.Font = Enum.Font.SourceSans
  877. NewGuiPart66.FontSize = Enum.FontSize.Size14
  878. NewGuiPart66.Text = "Display values returned"
  879. NewGuiPart66.TextXAlignment = Enum.TextXAlignment.Left
  880.  
  881. NewGuiPart67.Name = "Add"
  882. NewGuiPart67.Parent = NewGuiPart61
  883. NewGuiPart67.BackgroundColor3 = Color3.new(1, 1, 1)
  884. NewGuiPart67.BackgroundTransparency = 0.5
  885. NewGuiPart67.BorderColor3 = Color3.new(0, 0, 0)
  886. NewGuiPart67.Position = UDim2.new(0.800000012, 0, 0.625, 0)
  887. NewGuiPart67.Size = UDim2.new(0, 20, 0, 20)
  888. NewGuiPart67.Font = Enum.Font.SourceSansBold
  889. NewGuiPart67.FontSize = Enum.FontSize.Size24
  890. NewGuiPart67.Text = "+"
  891.  
  892. NewGuiPart68.Name = "Subtract"
  893. NewGuiPart68.Parent = NewGuiPart61
  894. NewGuiPart68.BackgroundColor3 = Color3.new(1, 1, 1)
  895. NewGuiPart68.BackgroundTransparency = 0.5
  896. NewGuiPart68.BorderColor3 = Color3.new(0, 0, 0)
  897. NewGuiPart68.Position = UDim2.new(0.899999976, 0, 0.625, 0)
  898. NewGuiPart68.Size = UDim2.new(0, 20, 0, 20)
  899. NewGuiPart68.Font = Enum.Font.SourceSansBold
  900. NewGuiPart68.FontSize = Enum.FontSize.Size24
  901. NewGuiPart68.Text = "-"
  902.  
  903. NewGuiPart69.Name = "ArgumentTemplate"
  904. NewGuiPart69.Parent = NewGuiPart61
  905. NewGuiPart69.BackgroundColor3 = Color3.new(1, 1, 1)
  906. NewGuiPart69.BackgroundTransparency = 0.5
  907. NewGuiPart69.BorderColor3 = Color3.new(0.74902, 0.74902, 0.74902)
  908. NewGuiPart69.Size = UDim2.new(1, 0, 0, 20)
  909. NewGuiPart69.Visible = false
  910.  
  911. NewGuiPart70.Name = "Type"
  912. NewGuiPart70.Parent = NewGuiPart69
  913. NewGuiPart70.BackgroundColor3 = Color3.new(1, 1, 1)
  914. NewGuiPart70.BackgroundTransparency = 0.89999997615814
  915. NewGuiPart70.BorderColor3 = Color3.new(0, 0, 0)
  916. NewGuiPart70.Size = UDim2.new(0.400000006, 0, 0, 20)
  917. NewGuiPart70.Font = Enum.Font.SourceSans
  918. NewGuiPart70.FontSize = Enum.FontSize.Size18
  919. NewGuiPart70.Text = "Script"
  920.  
  921. NewGuiPart71.Name = "Value"
  922. NewGuiPart71.Parent = NewGuiPart69
  923. NewGuiPart71.BackgroundColor3 = Color3.new(1, 1, 1)
  924. NewGuiPart71.BackgroundTransparency = 0.89999997615814
  925. NewGuiPart71.Position = UDim2.new(0.400000006, 0, 0, 0)
  926. NewGuiPart71.Size = UDim2.new(0.600000024, -12, 0, 20)
  927. NewGuiPart71.Font = Enum.Font.SourceSans
  928. NewGuiPart71.FontSize = Enum.FontSize.Size14
  929. NewGuiPart71.Text = ""
  930. NewGuiPart71.TextXAlignment = Enum.TextXAlignment.Left
  931.  
  932. NewGuiPart72.Name = "Cancel"
  933. NewGuiPart72.Parent = NewGuiPart61
  934. NewGuiPart72.BackgroundColor3 = Color3.new(1, 1, 1)
  935. NewGuiPart72.BackgroundTransparency = 0.5
  936. NewGuiPart72.BorderColor3 = Color3.new(0, 0, 0)
  937. NewGuiPart72.Size = UDim2.new(0.400000006, 0, 0, 30)
  938. NewGuiPart72.Font = Enum.Font.SourceSans
  939. NewGuiPart72.FontSize = Enum.FontSize.Size18
  940. NewGuiPart72.Text = "Cancel"
  941.  
  942. NewGuiPart73.Name = "Ok"
  943. NewGuiPart73.Parent = NewGuiPart61
  944. NewGuiPart73.BackgroundColor3 = Color3.new(1, 1, 1)
  945. NewGuiPart73.BackgroundTransparency = 0.5
  946. NewGuiPart73.BorderColor3 = Color3.new(0, 0, 0)
  947. NewGuiPart73.Position = UDim2.new(0.075000003, 0, 1, -40)
  948. NewGuiPart73.Size = UDim2.new(0.400000006, 0, 0, 30)
  949. NewGuiPart73.Font = Enum.Font.SourceSans
  950. NewGuiPart73.FontSize = Enum.FontSize.Size18
  951. NewGuiPart73.Text = "Call"
  952.  
  953. NewGuiPart74.Name = "TableCaution"
  954. NewGuiPart74.Parent = NewGuiPart1
  955. NewGuiPart74.Active = true
  956. NewGuiPart74.BackgroundColor3 = Color3.new(0.913726, 0.913726, 0.913726)
  957. NewGuiPart74.BorderColor3 = Color3.new(0.584314, 0.584314, 0.584314)
  958. NewGuiPart74.Draggable = true
  959. NewGuiPart74.Position = UDim2.new(0.300000012, 0, 0.300000012, 0)
  960. NewGuiPart74.Size = UDim2.new(0, 350, 0, 20)
  961. NewGuiPart74.Visible = false
  962. NewGuiPart74.ZIndex = 2
  963.  
  964. NewGuiPart75.Name = "MainWindow"
  965. NewGuiPart75.Parent = NewGuiPart74
  966. NewGuiPart75.BackgroundColor3 = Color3.new(1, 1, 1)
  967. NewGuiPart75.BackgroundTransparency = 0.10000000149012
  968. NewGuiPart75.BorderColor3 = Color3.new(0.74902, 0.74902, 0.74902)
  969. NewGuiPart75.Size = UDim2.new(1, 0, 0, 150)
  970.  
  971. NewGuiPart76.Name = "Ok"
  972. NewGuiPart76.Parent = NewGuiPart75
  973. NewGuiPart76.BackgroundColor3 = Color3.new(1, 1, 1)
  974. NewGuiPart76.BackgroundTransparency = 0.5
  975. NewGuiPart76.BorderColor3 = Color3.new(0, 0, 0)
  976. NewGuiPart76.Position = UDim2.new(0.300000012, 0, 1, -40)
  977. NewGuiPart76.Size = UDim2.new(0.400000006, 0, 0, 30)
  978. NewGuiPart76.Font = Enum.Font.SourceSans
  979. NewGuiPart76.FontSize = Enum.FontSize.Size18
  980. NewGuiPart76.Text = "Ok"
  981.  
  982. NewGuiPart77.Name = "TableResults"
  983. NewGuiPart77.Parent = NewGuiPart75
  984. NewGuiPart77.BackgroundColor3 = Color3.new(1, 1, 1)
  985. NewGuiPart77.BackgroundTransparency = 1
  986. NewGuiPart77.Position = UDim2.new(0, 0, 0, 20)
  987. NewGuiPart77.Size = UDim2.new(1, 0, 0, 80)
  988. NewGuiPart77.BottomImage = "rbxasset://textures/blackBkg_square.png"
  989. NewGuiPart77.CanvasSize = UDim2.new(0, 0, 0, 0)
  990. NewGuiPart77.MidImage = "rbxasset://textures/blackBkg_square.png"
  991. NewGuiPart77.TopImage = "rbxasset://textures/blackBkg_square.png"
  992.  
  993. NewGuiPart78.Name = "TableTemplate"
  994. NewGuiPart78.Parent = NewGuiPart75
  995. NewGuiPart78.BackgroundColor3 = Color3.new(1, 1, 1)
  996. NewGuiPart78.BackgroundTransparency = 0.5
  997. NewGuiPart78.BorderColor3 = Color3.new(0.74902, 0.74902, 0.74902)
  998. NewGuiPart78.Size = UDim2.new(1, 0, 0, 20)
  999. NewGuiPart78.Visible = false
  1000.  
  1001. NewGuiPart79.Name = "Type"
  1002. NewGuiPart79.Parent = NewGuiPart78
  1003. NewGuiPart79.BackgroundColor3 = Color3.new(1, 1, 1)
  1004. NewGuiPart79.BackgroundTransparency = 0.89999997615814
  1005. NewGuiPart79.Size = UDim2.new(0.400000006, 0, 0, 20)
  1006. NewGuiPart79.Font = Enum.Font.SourceSans
  1007. NewGuiPart79.FontSize = Enum.FontSize.Size18
  1008. NewGuiPart79.Text = "Script"
  1009.  
  1010. NewGuiPart80.Name = "Value"
  1011. NewGuiPart80.Parent = NewGuiPart78
  1012. NewGuiPart80.BackgroundColor3 = Color3.new(1, 1, 1)
  1013. NewGuiPart80.BackgroundTransparency = 0.89999997615814
  1014. NewGuiPart80.Position = UDim2.new(0.400000006, 0, 0, 0)
  1015. NewGuiPart80.Size = UDim2.new(0.600000024, -12, 0, 20)
  1016. NewGuiPart80.Font = Enum.Font.SourceSans
  1017. NewGuiPart80.FontSize = Enum.FontSize.Size14
  1018. NewGuiPart80.Text = "Script"
  1019.  
  1020. NewGuiPart81.Name = "Title"
  1021. NewGuiPart81.Parent = NewGuiPart74
  1022. NewGuiPart81.BackgroundTransparency = 1
  1023. NewGuiPart81.Size = UDim2.new(1, 0, 1, 0)
  1024. NewGuiPart81.ZIndex = 2
  1025. NewGuiPart81.Font = Enum.Font.SourceSans
  1026. NewGuiPart81.FontSize = Enum.FontSize.Size14
  1027. NewGuiPart81.Text = "Caution"
  1028. NewGuiPart81.TextColor3 = Color3.new(0, 0, 0)
  1029. NewGuiPart81.TextXAlignment = Enum.TextXAlignment.Left
  1030.  
  1031. NewGuiPart82.Name = "ScriptEditor"
  1032. NewGuiPart82.Parent = NewGuiPart1
  1033. NewGuiPart82.Active = true
  1034. NewGuiPart82.BackgroundColor3 = Color3.new(0.913726, 0.913726, 0.913726)
  1035. NewGuiPart82.BorderColor3 = Color3.new(0.584314, 0.584314, 0.584314)
  1036. NewGuiPart82.Draggable = true
  1037. NewGuiPart82.Position = UDim2.new(0.300000012, 0, 0.300000012, 0)
  1038. NewGuiPart82.Size = UDim2.new(0, 516, 0, 20)
  1039. NewGuiPart82.Visible = false
  1040. NewGuiPart82.ZIndex = 5
  1041.  
  1042. NewGuiPart163.Name = "OpenScript"
  1043. NewGuiPart163.Parent = NewGuiPart82
  1044. NewGuiPart163.Archivable = true
  1045.  
  1046. NewGuiPart83.Name = "Title"
  1047. NewGuiPart83.Parent = NewGuiPart82
  1048. NewGuiPart83.BackgroundTransparency = 1
  1049. NewGuiPart83.Size = UDim2.new(1, 0, 1, 0)
  1050. NewGuiPart83.ZIndex = 5
  1051. NewGuiPart83.Font = Enum.Font.SourceSans
  1052. NewGuiPart83.FontSize = Enum.FontSize.Size14
  1053. NewGuiPart83.Text = "Script Viewer"
  1054. NewGuiPart83.TextColor3 = Color3.new(0, 0, 0)
  1055. NewGuiPart83.TextXAlignment = Enum.TextXAlignment.Left
  1056.  
  1057. NewGuiPart84.Name = "Cover"
  1058. NewGuiPart84.Parent = NewGuiPart82
  1059. NewGuiPart84.BackgroundColor3 = Color3.new(1, 1, 1)
  1060. NewGuiPart84.BorderSizePixel = 0
  1061. NewGuiPart84.Position = UDim2.new(0, 0, 3, 0)
  1062. NewGuiPart84.Size = UDim2.new(0, 516, 0, 416)
  1063.  
  1064. NewGuiPart85.Name = "EditorGrid"
  1065. NewGuiPart85.Parent = NewGuiPart82
  1066. NewGuiPart85.BackgroundColor3 = Color3.new(1, 1, 1)
  1067. NewGuiPart85.BorderSizePixel = 0
  1068. NewGuiPart85.Position = UDim2.new(0, 0, 3, 0)
  1069. NewGuiPart85.Size = UDim2.new(0, 500, 0, 400)
  1070.  
  1071. NewGuiPart86.Name = "TopBar"
  1072. NewGuiPart86.Parent = NewGuiPart82
  1073. NewGuiPart86.BackgroundColor3 = Color3.new(0.941177, 0.941177, 0.941177)
  1074. NewGuiPart86.BorderColor3 = Color3.new(0.584314, 0.584314, 0.584314)
  1075. NewGuiPart86.Size = UDim2.new(1, 0, 3, 0)
  1076.  
  1077. NewGuiPart87.Name = "ScriptBarLeft"
  1078. NewGuiPart87.Parent = NewGuiPart86
  1079. NewGuiPart87.Active = false
  1080. NewGuiPart87.BackgroundColor3 = Color3.new(0.866667, 0.866667, 0.866667)
  1081. NewGuiPart87.BorderColor3 = Color3.new(0.584314, 0.584314, 0.584314)
  1082. NewGuiPart87.Position = UDim2.new(1, -32, 0, 40)
  1083. NewGuiPart87.Size = UDim2.new(0, 16, 0, 20)
  1084. NewGuiPart87.AutoButtonColor = false
  1085.  
  1086. NewGuiPart88.Name = "Arrow Graphic"
  1087. NewGuiPart88.Parent = NewGuiPart87
  1088. NewGuiPart88.BackgroundTransparency = 1
  1089. NewGuiPart88.BorderSizePixel = 0
  1090. NewGuiPart88.Position = UDim2.new(0.5, -4, 0.5, -4)
  1091. NewGuiPart88.Size = UDim2.new(0, 8, 0, 8)
  1092.  
  1093. NewGuiPart89.Name = "Graphic"
  1094. NewGuiPart89.Parent = NewGuiPart88
  1095. NewGuiPart89.BackgroundColor3 = Color3.new(0.584314, 0.584314, 0.584314)
  1096. NewGuiPart89.BackgroundTransparency = 0.69999998807907
  1097. NewGuiPart89.BorderSizePixel = 0
  1098. NewGuiPart89.Position = UDim2.new(0.25, 0, 0.375, 0)
  1099. NewGuiPart89.Size = UDim2.new(0.125, 0, 0.25, 0)
  1100.  
  1101. NewGuiPart90.Name = "Graphic"
  1102. NewGuiPart90.Parent = NewGuiPart88
  1103. NewGuiPart90.BackgroundColor3 = Color3.new(0.584314, 0.584314, 0.584314)
  1104. NewGuiPart90.BackgroundTransparency = 0.69999998807907
  1105. NewGuiPart90.BorderSizePixel = 0
  1106. NewGuiPart90.Position = UDim2.new(0.375, 0, 0.25, 0)
  1107. NewGuiPart90.Size = UDim2.new(0.125, 0, 0.5, 0)
  1108.  
  1109. NewGuiPart91.Name = "Graphic"
  1110. NewGuiPart91.Parent = NewGuiPart88
  1111. NewGuiPart91.BackgroundColor3 = Color3.new(0.584314, 0.584314, 0.584314)
  1112. NewGuiPart91.BackgroundTransparency = 0.69999998807907
  1113. NewGuiPart91.BorderSizePixel = 0
  1114. NewGuiPart91.Position = UDim2.new(0.5, 0, 0.125, 0)
  1115. NewGuiPart91.Size = UDim2.new(0.125, 0, 0.75, 0)
  1116.  
  1117. NewGuiPart92.Name = "Graphic"
  1118. NewGuiPart92.Parent = NewGuiPart88
  1119. NewGuiPart92.BackgroundColor3 = Color3.new(0.584314, 0.584314, 0.584314)
  1120. NewGuiPart92.BackgroundTransparency = 0.69999998807907
  1121. NewGuiPart92.BorderSizePixel = 0
  1122. NewGuiPart92.Position = UDim2.new(0.625, 0, 0, 0)
  1123. NewGuiPart92.Size = UDim2.new(0.125, 0, 1, 0)
  1124.  
  1125. NewGuiPart93.Name = "ScriptBarRight"
  1126. NewGuiPart93.Parent = NewGuiPart86
  1127. NewGuiPart93.Active = false
  1128. NewGuiPart93.BackgroundColor3 = Color3.new(0.866667, 0.866667, 0.866667)
  1129. NewGuiPart93.BorderColor3 = Color3.new(0.584314, 0.584314, 0.584314)
  1130. NewGuiPart93.Position = UDim2.new(1, -16, 0, 40)
  1131. NewGuiPart93.Size = UDim2.new(0, 16, 0, 20)
  1132. NewGuiPart93.AutoButtonColor = false
  1133.  
  1134. NewGuiPart94.Name = "Arrow Graphic"
  1135. NewGuiPart94.Parent = NewGuiPart93
  1136. NewGuiPart94.BackgroundTransparency = 1
  1137. NewGuiPart94.BorderSizePixel = 0
  1138. NewGuiPart94.Position = UDim2.new(0.5, -4, 0.5, -4)
  1139. NewGuiPart94.Size = UDim2.new(0, 8, 0, 8)
  1140.  
  1141. NewGuiPart95.Name = "Graphic"
  1142. NewGuiPart95.Parent = NewGuiPart94
  1143. NewGuiPart95.BackgroundColor3 = Color3.new(0.584314, 0.584314, 0.584314)
  1144. NewGuiPart95.BackgroundTransparency = 0.69999998807907
  1145. NewGuiPart95.BorderSizePixel = 0
  1146. NewGuiPart95.Position = UDim2.new(0.625, 0, 0.375, 0)
  1147. NewGuiPart95.Size = UDim2.new(0.125, 0, 0.25, 0)
  1148.  
  1149. NewGuiPart96.Name = "Graphic"
  1150. NewGuiPart96.Parent = NewGuiPart94
  1151. NewGuiPart96.BackgroundColor3 = Color3.new(0.584314, 0.584314, 0.584314)
  1152. NewGuiPart96.BackgroundTransparency = 0.69999998807907
  1153. NewGuiPart96.BorderSizePixel = 0
  1154. NewGuiPart96.Position = UDim2.new(0.5, 0, 0.25, 0)
  1155. NewGuiPart96.Size = UDim2.new(0.125, 0, 0.5, 0)
  1156.  
  1157. NewGuiPart97.Name = "Graphic"
  1158. NewGuiPart97.Parent = NewGuiPart94
  1159. NewGuiPart97.BackgroundColor3 = Color3.new(0.584314, 0.584314, 0.584314)
  1160. NewGuiPart97.BackgroundTransparency = 0.69999998807907
  1161. NewGuiPart97.BorderSizePixel = 0
  1162. NewGuiPart97.Position = UDim2.new(0.375, 0, 0.125, 0)
  1163. NewGuiPart97.Size = UDim2.new(0.125, 0, 0.75, 0)
  1164.  
  1165. NewGuiPart98.Name = "Graphic"
  1166. NewGuiPart98.Parent = NewGuiPart94
  1167. NewGuiPart98.BackgroundColor3 = Color3.new(0.584314, 0.584314, 0.584314)
  1168. NewGuiPart98.BackgroundTransparency = 0.69999998807907
  1169. NewGuiPart98.BorderSizePixel = 0
  1170. NewGuiPart98.Position = UDim2.new(0.25, 0, 0, 0)
  1171. NewGuiPart98.Size = UDim2.new(0.125, 0, 1, 0)
  1172.  
  1173. NewGuiPart99.Name = "Clipboard"
  1174. NewGuiPart99.Parent = NewGuiPart86
  1175. NewGuiPart99.BackgroundColor3 = Color3.new(1, 1, 1)
  1176. NewGuiPart99.BackgroundTransparency = 0.5
  1177. NewGuiPart99.BorderColor3 = Color3.new(0, 0, 0)
  1178. NewGuiPart99.Position = UDim2.new(0, 0, 0, 20)
  1179. NewGuiPart99.Size = UDim2.new(0, 80, 0, 20)
  1180. NewGuiPart99.Font = Enum.Font.SourceSans
  1181. NewGuiPart99.FontSize = Enum.FontSize.Size14
  1182. NewGuiPart99.Text = "To Clipboard"
  1183.  
  1184. NewGuiPart100.Name = "ScriptBar"
  1185. NewGuiPart100.Parent = NewGuiPart86
  1186. NewGuiPart100.BackgroundColor3 = Color3.new(0.823529, 0.823529, 0.823529)
  1187. NewGuiPart100.BorderColor3 = Color3.new(0.584314, 0.584314, 0.584314)
  1188. NewGuiPart100.ClipsDescendants = true
  1189. NewGuiPart100.Position = UDim2.new(0, 0, 0, 40)
  1190. NewGuiPart100.Size = UDim2.new(1, -32, 0, 20)
  1191.  
  1192. NewGuiPart101.Name = "Entry"
  1193. NewGuiPart101.Parent = NewGuiPart86
  1194. NewGuiPart101.BackgroundColor3 = Color3.new(1, 1, 1)
  1195. NewGuiPart101.BackgroundTransparency = 1
  1196. NewGuiPart101.Size = UDim2.new(0, 100, 1, 0)
  1197. NewGuiPart101.Visible = false
  1198.  
  1199. NewGuiPart102.Name = "Button"
  1200. NewGuiPart102.Parent = NewGuiPart101
  1201. NewGuiPart102.BackgroundColor3 = Color3.new(1, 1, 1)
  1202. NewGuiPart102.BackgroundTransparency = 0.60000002384186
  1203. NewGuiPart102.BorderColor3 = Color3.new(0, 0, 0)
  1204. NewGuiPart102.ClipsDescendants = true
  1205. NewGuiPart102.Size = UDim2.new(1, 0, 1, 0)
  1206. NewGuiPart102.ZIndex = 4
  1207. NewGuiPart102.Font = Enum.Font.SourceSans
  1208. NewGuiPart102.FontSize = Enum.FontSize.Size12
  1209. NewGuiPart102.Text = ""
  1210. NewGuiPart102.TextXAlignment = Enum.TextXAlignment.Left
  1211.  
  1212. NewGuiPart103.Name = "Close"
  1213. NewGuiPart103.Parent = NewGuiPart101
  1214. NewGuiPart103.BackgroundColor3 = Color3.new(1, 1, 1)
  1215. NewGuiPart103.BackgroundTransparency = 1
  1216. NewGuiPart103.BorderColor3 = Color3.new(0, 0, 0)
  1217. NewGuiPart103.Position = UDim2.new(1, -20, 0, 0)
  1218. NewGuiPart103.Size = UDim2.new(0, 20, 0, 20)
  1219. NewGuiPart103.ZIndex = 4
  1220. NewGuiPart103.Font = Enum.Font.SourceSans
  1221. NewGuiPart103.FontSize = Enum.FontSize.Size14
  1222. NewGuiPart103.Text = "X"
  1223.  
  1224. NewGuiPart104.Name = "Close"
  1225. NewGuiPart104.Parent = NewGuiPart82
  1226. NewGuiPart104.BackgroundColor3 = Color3.new(1, 1, 1)
  1227. NewGuiPart104.BackgroundTransparency = 1
  1228. NewGuiPart104.BorderColor3 = Color3.new(0, 0, 0)
  1229. NewGuiPart104.Position = UDim2.new(1, -20, 0, 0)
  1230. NewGuiPart104.Size = UDim2.new(0, 20, 0, 20)
  1231. NewGuiPart104.ZIndex = 5
  1232. NewGuiPart104.Font = Enum.Font.SourceSans
  1233. NewGuiPart104.FontSize = Enum.FontSize.Size14
  1234. NewGuiPart104.Text = "X"
  1235.  
  1236. NewGuiPart105.Name = "IntroFrame"
  1237. NewGuiPart105.Parent = NewGuiPart1
  1238. NewGuiPart105.BackgroundColor3 = Color3.new(0.960784, 0.960784, 0.960784)
  1239. NewGuiPart105.BorderSizePixel = 0
  1240. NewGuiPart105.Position = UDim2.new(1, 30, 0, 0)
  1241. NewGuiPart105.Size = UDim2.new(0, 300, 1, 0)
  1242. NewGuiPart105.ZIndex = 2
  1243.  
  1244. NewGuiPart106.Name = "Main"
  1245. NewGuiPart106.Parent = NewGuiPart105
  1246. NewGuiPart106.BackgroundColor3 = Color3.new(0.960784, 0.960784, 0.960784)
  1247. NewGuiPart106.BorderSizePixel = 0
  1248. NewGuiPart106.Position = UDim2.new(0, -30, 0, 0)
  1249. NewGuiPart106.Size = UDim2.new(0, 30, 0, 90)
  1250. NewGuiPart106.ZIndex = 2
  1251.  
  1252. NewGuiPart107.Name = "Title"
  1253. NewGuiPart107.Parent = NewGuiPart105
  1254. NewGuiPart107.BackgroundColor3 = Color3.new(1, 1, 1)
  1255. NewGuiPart107.BackgroundTransparency = 1
  1256. NewGuiPart107.Position = UDim2.new(0, 100, 0, 150)
  1257. NewGuiPart107.Size = UDim2.new(0, 100, 0, 60)
  1258. NewGuiPart107.ZIndex = 2
  1259. NewGuiPart107.Font = Enum.Font.SourceSansBold
  1260. NewGuiPart107.FontSize = Enum.FontSize.Size60
  1261. NewGuiPart107.Text = "DEX"
  1262. NewGuiPart107.TextWrapped = true
  1263.  
  1264. NewGuiPart108.Name = "Version"
  1265. NewGuiPart108.Parent = NewGuiPart105
  1266. NewGuiPart108.BackgroundColor3 = Color3.new(1, 1, 1)
  1267. NewGuiPart108.BackgroundTransparency = 1
  1268. NewGuiPart108.Position = UDim2.new(0, 100, 0, 210)
  1269. NewGuiPart108.Size = UDim2.new(0, 100, 0, 30)
  1270. NewGuiPart108.ZIndex = 2
  1271. NewGuiPart108.Font = Enum.Font.SourceSansBold
  1272. NewGuiPart108.FontSize = Enum.FontSize.Size28
  1273. NewGuiPart108.Text = "V2.0.0"
  1274. NewGuiPart108.TextWrapped = true
  1275.  
  1276. NewGuiPart109.Name = "Creator"
  1277. NewGuiPart109.Parent = NewGuiPart105
  1278. NewGuiPart109.BackgroundColor3 = Color3.new(1, 1, 1)
  1279. NewGuiPart109.BackgroundTransparency = 1
  1280. NewGuiPart109.Position = UDim2.new(0, 80, 0, 300)
  1281. NewGuiPart109.Size = UDim2.new(0, 140, 0, 30)
  1282. NewGuiPart109.ZIndex = 2
  1283. NewGuiPart109.Font = Enum.Font.SourceSansBold
  1284. NewGuiPart109.FontSize = Enum.FontSize.Size28
  1285. NewGuiPart109.Text = "Raspberry Pi , Script Made By Advancedev"
  1286. NewGuiPart109.TextWrapped = true
  1287.  
  1288. NewGuiPart110.Name = "Slant"
  1289. NewGuiPart110.Parent = NewGuiPart105
  1290. NewGuiPart110.BackgroundColor3 = Color3.new(1, 1, 1)
  1291. NewGuiPart110.BackgroundTransparency = 1
  1292. NewGuiPart110.Position = UDim2.new(0, -30, 0, 90)
  1293. NewGuiPart110.Rotation = 180
  1294. NewGuiPart110.Size = UDim2.new(0, 30, 0, 30)
  1295. NewGuiPart110.ZIndex = 2
  1296. NewGuiPart110.Image = "rbxassetid://474172996"
  1297. NewGuiPart110.ImageColor3 = Color3.new(0.960784, 0.960784, 0.960784)
  1298.  
  1299. NewGuiPart111.Name = "SaveMapWindow"
  1300. NewGuiPart111.Parent = NewGuiPart1
  1301. NewGuiPart111.BackgroundColor3 = Color3.new(1, 1, 1)
  1302. NewGuiPart111.BackgroundTransparency = 0.10000000149012
  1303. NewGuiPart111.BorderColor3 = Color3.new(0.74902, 0.74902, 0.74902)
  1304. NewGuiPart111.Position = UDim2.new(1, 0, 0, 0)
  1305. NewGuiPart111.Size = UDim2.new(0, 300, 1, 0)
  1306.  
  1307. NewGuiPart112.Name = "Header"
  1308. NewGuiPart112.Parent = NewGuiPart111
  1309. NewGuiPart112.BackgroundColor3 = Color3.new(0.913726, 0.913726, 0.913726)
  1310. NewGuiPart112.BorderColor3 = Color3.new(0.584314, 0.584314, 0.584314)
  1311. NewGuiPart112.Size = UDim2.new(1, 0, 0, 17)
  1312.  
  1313. NewGuiPart113.Parent = NewGuiPart112
  1314. NewGuiPart113.BackgroundTransparency = 1
  1315. NewGuiPart113.Position = UDim2.new(0, 4, 0, 0)
  1316. NewGuiPart113.Size = UDim2.new(1, -4, 1, 0)
  1317. NewGuiPart113.Font = Enum.Font.SourceSans
  1318. NewGuiPart113.FontSize = Enum.FontSize.Size14
  1319. NewGuiPart113.Text = "Map Downloader"
  1320. NewGuiPart113.TextColor3 = Color3.new(0, 0, 0)
  1321. NewGuiPart113.TextXAlignment = Enum.TextXAlignment.Left
  1322.  
  1323. NewGuiPart114.Name = "MapSettings"
  1324. NewGuiPart114.Parent = NewGuiPart111
  1325. NewGuiPart114.BackgroundColor3 = Color3.new(1, 1, 1)
  1326. NewGuiPart114.BackgroundTransparency = 1
  1327. NewGuiPart114.Position = UDim2.new(0, 0, 0, 200)
  1328. NewGuiPart114.Size = UDim2.new(1, 0, 0, 240)
  1329.  
  1330. NewGuiPart115.Name = "Terrain"
  1331. NewGuiPart115.Parent = NewGuiPart114
  1332. NewGuiPart115.BackgroundColor3 = Color3.new(1, 1, 1)
  1333. NewGuiPart115.BackgroundTransparency = 1
  1334. NewGuiPart115.Position = UDim2.new(0, 0, 0, 60)
  1335. NewGuiPart115.Size = UDim2.new(1, 0, 0, 60)
  1336.  
  1337. NewGuiPart116.Name = "SName"
  1338. NewGuiPart116.Parent = NewGuiPart115
  1339. NewGuiPart116.BackgroundColor3 = Color3.new(1, 1, 1)
  1340. NewGuiPart116.BackgroundTransparency = 1
  1341. NewGuiPart116.Position = UDim2.new(0, 10, 0, 0)
  1342. NewGuiPart116.Size = UDim2.new(1, -20, 0, 30)
  1343. NewGuiPart116.Font = Enum.Font.SourceSans
  1344. NewGuiPart116.FontSize = Enum.FontSize.Size18
  1345. NewGuiPart116.Text = "Save Terrain"
  1346. NewGuiPart116.TextXAlignment = Enum.TextXAlignment.Left
  1347.  
  1348. NewGuiPart117.Name = "Status"
  1349. NewGuiPart117.Parent = NewGuiPart115
  1350. NewGuiPart117.BackgroundColor3 = Color3.new(1, 1, 1)
  1351. NewGuiPart117.BackgroundTransparency = 1
  1352. NewGuiPart117.Position = UDim2.new(0, 60, 0, 30)
  1353. NewGuiPart117.Size = UDim2.new(0, 50, 0, 15)
  1354. NewGuiPart117.Font = Enum.Font.SourceSans
  1355. NewGuiPart117.FontSize = Enum.FontSize.Size18
  1356. NewGuiPart117.Text = "Off"
  1357. NewGuiPart117.TextXAlignment = Enum.TextXAlignment.Left
  1358.  
  1359. NewGuiPart118.Name = "Change"
  1360. NewGuiPart118.Parent = NewGuiPart115
  1361. NewGuiPart118.BackgroundColor3 = Color3.new(0.862745, 0.862745, 0.862745)
  1362. NewGuiPart118.BorderSizePixel = 0
  1363. NewGuiPart118.Position = UDim2.new(0, 10, 0, 30)
  1364. NewGuiPart118.Size = UDim2.new(0, 40, 0, 15)
  1365. NewGuiPart118.Font = Enum.Font.SourceSans
  1366. NewGuiPart118.FontSize = Enum.FontSize.Size14
  1367. NewGuiPart118.Text = ""
  1368.  
  1369. NewGuiPart119.Name = "OnBar"
  1370. NewGuiPart119.Parent = NewGuiPart118
  1371. NewGuiPart119.BackgroundColor3 = Color3.new(0, 0.576471, 0.862745)
  1372. NewGuiPart119.BorderSizePixel = 0
  1373. NewGuiPart119.Size = UDim2.new(0, 0, 0, 15)
  1374. NewGuiPart119.Font = Enum.Font.SourceSans
  1375. NewGuiPart119.FontSize = Enum.FontSize.Size14
  1376. NewGuiPart119.Text = ""
  1377.  
  1378. NewGuiPart120.Name = "Bar"
  1379. NewGuiPart120.Parent = NewGuiPart118
  1380. NewGuiPart120.BackgroundColor3 = Color3.new(0, 0, 0)
  1381. NewGuiPart120.BorderSizePixel = 0
  1382. NewGuiPart120.ClipsDescendants = true
  1383. NewGuiPart120.Position = UDim2.new(0, -2, 0, -2)
  1384. NewGuiPart120.Size = UDim2.new(0, 10, 0, 19)
  1385. NewGuiPart120.Font = Enum.Font.SourceSans
  1386. NewGuiPart120.FontSize = Enum.FontSize.Size14
  1387. NewGuiPart120.Text = ""
  1388.  
  1389. NewGuiPart121.Name = "Lighting"
  1390. NewGuiPart121.Parent = NewGuiPart114
  1391. NewGuiPart121.BackgroundColor3 = Color3.new(1, 1, 1)
  1392. NewGuiPart121.BackgroundTransparency = 1
  1393. NewGuiPart121.Position = UDim2.new(0, 0, 0, 120)
  1394. NewGuiPart121.Size = UDim2.new(1, 0, 0, 60)
  1395.  
  1396. NewGuiPart122.Name = "SName"
  1397. NewGuiPart122.Parent = NewGuiPart121
  1398. NewGuiPart122.BackgroundColor3 = Color3.new(1, 1, 1)
  1399. NewGuiPart122.BackgroundTransparency = 1
  1400. NewGuiPart122.Position = UDim2.new(0, 10, 0, 0)
  1401. NewGuiPart122.Size = UDim2.new(1, -20, 0, 30)
  1402. NewGuiPart122.Font = Enum.Font.SourceSans
  1403. NewGuiPart122.FontSize = Enum.FontSize.Size18
  1404. NewGuiPart122.Text = "Lighting Properties"
  1405. NewGuiPart122.TextXAlignment = Enum.TextXAlignment.Left
  1406.  
  1407. NewGuiPart123.Name = "Status"
  1408. NewGuiPart123.Parent = NewGuiPart121
  1409. NewGuiPart123.BackgroundColor3 = Color3.new(1, 1, 1)
  1410. NewGuiPart123.BackgroundTransparency = 1
  1411. NewGuiPart123.Position = UDim2.new(0, 60, 0, 30)
  1412. NewGuiPart123.Size = UDim2.new(0, 50, 0, 15)
  1413. NewGuiPart123.Font = Enum.Font.SourceSans
  1414. NewGuiPart123.FontSize = Enum.FontSize.Size18
  1415. NewGuiPart123.Text = "Off"
  1416. NewGuiPart123.TextXAlignment = Enum.TextXAlignment.Left
  1417.  
  1418. NewGuiPart124.Name = "Change"
  1419. NewGuiPart124.Parent = NewGuiPart121
  1420. NewGuiPart124.BackgroundColor3 = Color3.new(0.862745, 0.862745, 0.862745)
  1421. NewGuiPart124.BorderSizePixel = 0
  1422. NewGuiPart124.Position = UDim2.new(0, 10, 0, 30)
  1423. NewGuiPart124.Size = UDim2.new(0, 40, 0, 15)
  1424. NewGuiPart124.Font = Enum.Font.SourceSans
  1425. NewGuiPart124.FontSize = Enum.FontSize.Size14
  1426. NewGuiPart124.Text = ""
  1427.  
  1428. NewGuiPart125.Name = "OnBar"
  1429. NewGuiPart125.Parent = NewGuiPart124
  1430. NewGuiPart125.BackgroundColor3 = Color3.new(0, 0.576471, 0.862745)
  1431. NewGuiPart125.BorderSizePixel = 0
  1432. NewGuiPart125.Size = UDim2.new(0, 0, 0, 15)
  1433. NewGuiPart125.Font = Enum.Font.SourceSans
  1434. NewGuiPart125.FontSize = Enum.FontSize.Size14
  1435. NewGuiPart125.Text = ""
  1436.  
  1437. NewGuiPart126.Name = "Bar"
  1438. NewGuiPart126.Parent = NewGuiPart124
  1439. NewGuiPart126.BackgroundColor3 = Color3.new(0, 0, 0)
  1440. NewGuiPart126.BorderSizePixel = 0
  1441. NewGuiPart126.ClipsDescendants = true
  1442. NewGuiPart126.Position = UDim2.new(0, -2, 0, -2)
  1443. NewGuiPart126.Size = UDim2.new(0, 10, 0, 19)
  1444. NewGuiPart126.Font = Enum.Font.SourceSans
  1445. NewGuiPart126.FontSize = Enum.FontSize.Size14
  1446. NewGuiPart126.Text = ""
  1447.  
  1448. NewGuiPart127.Name = "CameraInstances"
  1449. NewGuiPart127.Parent = NewGuiPart114
  1450. NewGuiPart127.BackgroundColor3 = Color3.new(1, 1, 1)
  1451. NewGuiPart127.BackgroundTransparency = 1
  1452. NewGuiPart127.Position = UDim2.new(0, 0, 0, 180)
  1453. NewGuiPart127.Size = UDim2.new(1, 0, 0, 60)
  1454.  
  1455. NewGuiPart128.Name = "SName"
  1456. NewGuiPart128.Parent = NewGuiPart127
  1457. NewGuiPart128.BackgroundColor3 = Color3.new(1, 1, 1)
  1458. NewGuiPart128.BackgroundTransparency = 1
  1459. NewGuiPart128.Position = UDim2.new(0, 10, 0, 0)
  1460. NewGuiPart128.Size = UDim2.new(1, -20, 0, 30)
  1461. NewGuiPart128.Font = Enum.Font.SourceSans
  1462. NewGuiPart128.FontSize = Enum.FontSize.Size18
  1463. NewGuiPart128.Text = "Camera Instances"
  1464. NewGuiPart128.TextXAlignment = Enum.TextXAlignment.Left
  1465.  
  1466. NewGuiPart129.Name = "Status"
  1467. NewGuiPart129.Parent = NewGuiPart127
  1468. NewGuiPart129.BackgroundColor3 = Color3.new(1, 1, 1)
  1469. NewGuiPart129.BackgroundTransparency = 1
  1470. NewGuiPart129.Position = UDim2.new(0, 60, 0, 30)
  1471. NewGuiPart129.Size = UDim2.new(0, 50, 0, 15)
  1472. NewGuiPart129.Font = Enum.Font.SourceSans
  1473. NewGuiPart129.FontSize = Enum.FontSize.Size18
  1474. NewGuiPart129.Text = "Off"
  1475. NewGuiPart129.TextXAlignment = Enum.TextXAlignment.Left
  1476.  
  1477. NewGuiPart130.Name = "Change"
  1478. NewGuiPart130.Parent = NewGuiPart127
  1479. NewGuiPart130.BackgroundColor3 = Color3.new(0.862745, 0.862745, 0.862745)
  1480. NewGuiPart130.BorderSizePixel = 0
  1481. NewGuiPart130.Position = UDim2.new(0, 10, 0, 30)
  1482. NewGuiPart130.Size = UDim2.new(0, 40, 0, 15)
  1483. NewGuiPart130.Font = Enum.Font.SourceSans
  1484. NewGuiPart130.FontSize = Enum.FontSize.Size14
  1485. NewGuiPart130.Text = ""
  1486.  
  1487. NewGuiPart131.Name = "OnBar"
  1488. NewGuiPart131.Parent = NewGuiPart130
  1489. NewGuiPart131.BackgroundColor3 = Color3.new(0, 0.576471, 0.862745)
  1490. NewGuiPart131.BorderSizePixel = 0
  1491. NewGuiPart131.Size = UDim2.new(0, 0, 0, 15)
  1492. NewGuiPart131.Font = Enum.Font.SourceSans
  1493. NewGuiPart131.FontSize = Enum.FontSize.Size14
  1494. NewGuiPart131.Text = ""
  1495.  
  1496. NewGuiPart132.Name = "Bar"
  1497. NewGuiPart132.Parent = NewGuiPart130
  1498. NewGuiPart132.BackgroundColor3 = Color3.new(0, 0, 0)
  1499. NewGuiPart132.BorderSizePixel = 0
  1500. NewGuiPart132.ClipsDescendants = true
  1501. NewGuiPart132.Position = UDim2.new(0, -2, 0, -2)
  1502. NewGuiPart132.Size = UDim2.new(0, 10, 0, 19)
  1503. NewGuiPart132.Font = Enum.Font.SourceSans
  1504. NewGuiPart132.FontSize = Enum.FontSize.Size14
  1505. NewGuiPart132.Text = ""
  1506.  
  1507. NewGuiPart133.Name = "Scripts"
  1508. NewGuiPart133.Parent = NewGuiPart114
  1509. NewGuiPart133.BackgroundColor3 = Color3.new(1, 1, 1)
  1510. NewGuiPart133.BackgroundTransparency = 1
  1511. NewGuiPart133.Size = UDim2.new(1, 0, 0, 60)
  1512.  
  1513. NewGuiPart134.Name = "SName"
  1514. NewGuiPart134.Parent = NewGuiPart133
  1515. NewGuiPart134.BackgroundColor3 = Color3.new(1, 1, 1)
  1516. NewGuiPart134.BackgroundTransparency = 1
  1517. NewGuiPart134.Position = UDim2.new(0, 10, 0, 0)
  1518. NewGuiPart134.Size = UDim2.new(1, -20, 0, 30)
  1519. NewGuiPart134.Font = Enum.Font.SourceSans
  1520. NewGuiPart134.FontSize = Enum.FontSize.Size18
  1521. NewGuiPart134.Text = "Save Scripts"
  1522. NewGuiPart134.TextXAlignment = Enum.TextXAlignment.Left
  1523.  
  1524. NewGuiPart135.Name = "Status"
  1525. NewGuiPart135.Parent = NewGuiPart133
  1526. NewGuiPart135.BackgroundColor3 = Color3.new(1, 1, 1)
  1527. NewGuiPart135.BackgroundTransparency = 1
  1528. NewGuiPart135.Position = UDim2.new(0, 60, 0, 30)
  1529. NewGuiPart135.Size = UDim2.new(0, 50, 0, 15)
  1530. NewGuiPart135.Font = Enum.Font.SourceSans
  1531. NewGuiPart135.FontSize = Enum.FontSize.Size18
  1532. NewGuiPart135.Text = "Off"
  1533. NewGuiPart135.TextXAlignment = Enum.TextXAlignment.Left
  1534.  
  1535. NewGuiPart136.Name = "Change"
  1536. NewGuiPart136.Parent = NewGuiPart133
  1537. NewGuiPart136.BackgroundColor3 = Color3.new(0.862745, 0.862745, 0.862745)
  1538. NewGuiPart136.BorderSizePixel = 0
  1539. NewGuiPart136.Position = UDim2.new(0, 10, 0, 30)
  1540. NewGuiPart136.Size = UDim2.new(0, 40, 0, 15)
  1541. NewGuiPart136.Font = Enum.Font.SourceSans
  1542. NewGuiPart136.FontSize = Enum.FontSize.Size14
  1543. NewGuiPart136.Text = ""
  1544.  
  1545. NewGuiPart137.Name = "OnBar"
  1546. NewGuiPart137.Parent = NewGuiPart136
  1547. NewGuiPart137.BackgroundColor3 = Color3.new(0, 0.576471, 0.862745)
  1548. NewGuiPart137.BorderSizePixel = 0
  1549. NewGuiPart137.Size = UDim2.new(0, 0, 0, 15)
  1550. NewGuiPart137.Font = Enum.Font.SourceSans
  1551. NewGuiPart137.FontSize = Enum.FontSize.Size14
  1552. NewGuiPart137.Text = ""
  1553.  
  1554. NewGuiPart138.Name = "Bar"
  1555. NewGuiPart138.Parent = NewGuiPart136
  1556. NewGuiPart138.BackgroundColor3 = Color3.new(0, 0, 0)
  1557. NewGuiPart138.BorderSizePixel = 0
  1558. NewGuiPart138.ClipsDescendants = true
  1559. NewGuiPart138.Position = UDim2.new(0, -2, 0, -2)
  1560. NewGuiPart138.Size = UDim2.new(0, 10, 0, 19)
  1561. NewGuiPart138.Font = Enum.Font.SourceSans
  1562. NewGuiPart138.FontSize = Enum.FontSize.Size14
  1563. NewGuiPart138.Text = ""
  1564.  
  1565. NewGuiPart139.Name = "ToSave"
  1566. NewGuiPart139.Parent = NewGuiPart111
  1567. NewGuiPart139.BackgroundTransparency = 1
  1568. NewGuiPart139.Position = UDim2.new(0, 0, 0, 17)
  1569. NewGuiPart139.Size = UDim2.new(1, 0, 0, 20)
  1570. NewGuiPart139.Font = Enum.Font.SourceSans
  1571. NewGuiPart139.FontSize = Enum.FontSize.Size18
  1572. NewGuiPart139.Text = "To Save"
  1573. NewGuiPart139.TextColor3 = Color3.new(0, 0, 0)
  1574.  
  1575. NewGuiPart140.Name = "CopyList"
  1576. NewGuiPart140.Parent = NewGuiPart111
  1577. NewGuiPart140.BackgroundColor3 = Color3.new(1, 1, 1)
  1578. NewGuiPart140.BackgroundTransparency = 0.80000001192093
  1579. NewGuiPart140.Position = UDim2.new(0, 0, 0, 37)
  1580. NewGuiPart140.Size = UDim2.new(1, 0, 0, 163)
  1581.  
  1582. NewGuiPart141.Name = "Bottom"
  1583. NewGuiPart141.Parent = NewGuiPart111
  1584. NewGuiPart141.BackgroundColor3 = Color3.new(0.913726, 0.913726, 0.913726)
  1585. NewGuiPart141.BorderColor3 = Color3.new(0.584314, 0.584314, 0.584314)
  1586. NewGuiPart141.Position = UDim2.new(0, 0, 1, -50)
  1587. NewGuiPart141.Size = UDim2.new(1, 0, 0, 50)
  1588.  
  1589. NewGuiPart142.Parent = NewGuiPart141
  1590. NewGuiPart142.BackgroundTransparency = 1
  1591. NewGuiPart142.Position = UDim2.new(0, 4, 0, 0)
  1592. NewGuiPart142.Size = UDim2.new(1, -4, 1, 0)
  1593. NewGuiPart142.Font = Enum.Font.SourceSans
  1594. NewGuiPart142.FontSize = Enum.FontSize.Size14
  1595. NewGuiPart142.Text = "After the map saves, open a new place on studio, then right click Lighting and "Insert from file...", then select your file and run the unpacker script inside the folder."
  1596. NewGuiPart142.TextColor3 = Color3.new(0, 0, 0)
  1597. NewGuiPart142.TextWrapped = true
  1598. NewGuiPart142.TextXAlignment = Enum.TextXAlignment.Left
  1599. NewGuiPart142.TextYAlignment = Enum.TextYAlignment.Top
  1600.  
  1601. NewGuiPart143.Name = "Save"
  1602. NewGuiPart143.Parent = NewGuiPart111
  1603. NewGuiPart143.BackgroundColor3 = Color3.new(0.941177, 0.941177, 0.941177)
  1604. NewGuiPart143.BackgroundTransparency = 0.80000001192093
  1605. NewGuiPart143.BorderColor3 = Color3.new(0, 0, 0)
  1606. NewGuiPart143.Position = UDim2.new(0, 0, 1, -80)
  1607. NewGuiPart143.Size = UDim2.new(1, 0, 0, 30)
  1608. NewGuiPart143.Font = Enum.Font.SourceSans
  1609. NewGuiPart143.FontSize = Enum.FontSize.Size18
  1610. NewGuiPart143.Text = "Save"
  1611.  
  1612. NewGuiPart144.Name = "FileName"
  1613. NewGuiPart144.Parent = NewGuiPart111
  1614. NewGuiPart144.BackgroundColor3 = Color3.new(0.941177, 0.941177, 0.941177)
  1615. NewGuiPart144.BackgroundTransparency = 0.60000002384186
  1616. NewGuiPart144.Position = UDim2.new(0, 0, 1, -105)
  1617. NewGuiPart144.Size = UDim2.new(1, 0, 0, 25)
  1618. NewGuiPart144.Font = Enum.Font.SourceSans
  1619. NewGuiPart144.FontSize = Enum.FontSize.Size18
  1620. NewGuiPart144.Text = "PlaceName"
  1621. NewGuiPart144.TextXAlignment = Enum.TextXAlignment.Left
  1622.  
  1623. NewGuiPart145.Name = "Entry"
  1624. NewGuiPart145.Parent = NewGuiPart111
  1625. NewGuiPart145.BackgroundColor3 = Color3.new(1, 1, 1)
  1626. NewGuiPart145.BackgroundTransparency = 1
  1627. NewGuiPart145.Size = UDim2.new(1, 0, 0, 22)
  1628. NewGuiPart145.Visible = false
  1629.  
  1630. NewGuiPart146.Name = "Change"
  1631. NewGuiPart146.Parent = NewGuiPart145
  1632. NewGuiPart146.BackgroundColor3 = Color3.new(1, 1, 1)
  1633. NewGuiPart146.BackgroundTransparency = 0.60000002384186
  1634. NewGuiPart146.Position = UDim2.new(0, 10, 0, 1)
  1635. NewGuiPart146.Size = UDim2.new(0, 20, 0, 20)
  1636. NewGuiPart146.ZIndex = 2
  1637. NewGuiPart146.Font = Enum.Font.SourceSans
  1638. NewGuiPart146.FontSize = Enum.FontSize.Size18
  1639. NewGuiPart146.Text = ""
  1640. NewGuiPart146.TextColor3 = Color3.new(1, 1, 1)
  1641.  
  1642. NewGuiPart147.Name = "enabled"
  1643. NewGuiPart147.Parent = NewGuiPart146
  1644. NewGuiPart147.BackgroundColor3 = Color3.new(0.380392, 0.380392, 0.380392)
  1645. NewGuiPart147.BackgroundTransparency = 0.40000000596046
  1646. NewGuiPart147.BorderSizePixel = 0
  1647. NewGuiPart147.Position = UDim2.new(0, 3, 0, 3)
  1648. NewGuiPart147.Size = UDim2.new(0, 14, 0, 14)
  1649. NewGuiPart147.Font = Enum.Font.SourceSans
  1650. NewGuiPart147.FontSize = Enum.FontSize.Size14
  1651. NewGuiPart147.Text = ""
  1652.  
  1653. NewGuiPart148.Name = "Info"
  1654. NewGuiPart148.Parent = NewGuiPart145
  1655. NewGuiPart148.BackgroundTransparency = 1
  1656. NewGuiPart148.Position = UDim2.new(0, 40, 0, 0)
  1657. NewGuiPart148.Size = UDim2.new(1, -40, 0, 22)
  1658. NewGuiPart148.Font = Enum.Font.SourceSans
  1659. NewGuiPart148.FontSize = Enum.FontSize.Size18
  1660. NewGuiPart148.Text = "Workspace"
  1661. NewGuiPart148.TextColor3 = Color3.new(0, 0, 0)
  1662. NewGuiPart148.TextXAlignment = Enum.TextXAlignment.Left
  1663.  
  1664. NewGuiPart149.Name = "RemoteDebugWindow"
  1665. NewGuiPart149.Parent = NewGuiPart1
  1666. NewGuiPart149.BackgroundColor3 = Color3.new(1, 1, 1)
  1667. NewGuiPart149.BackgroundTransparency = 0.10000000149012
  1668. NewGuiPart149.BorderColor3 = Color3.new(0.74902, 0.74902, 0.74902)
  1669. NewGuiPart149.Position = UDim2.new(1, 0, 0, 0)
  1670. NewGuiPart149.Size = UDim2.new(0, 300, 1, 0)
  1671.  
  1672. NewGuiPart161.Name = "GetSetting"
  1673. NewGuiPart161.Parent = NewGuiPart149
  1674. NewGuiPart161.Archivable = true
  1675.  
  1676. NewGuiPart150.Name = "Header"
  1677. NewGuiPart150.Parent = NewGuiPart149
  1678. NewGuiPart150.BackgroundColor3 = Color3.new(0.913726, 0.913726, 0.913726)
  1679. NewGuiPart150.BorderColor3 = Color3.new(0.584314, 0.584314, 0.584314)
  1680. NewGuiPart150.Size = UDim2.new(1, 0, 0, 17)
  1681.  
  1682. NewGuiPart151.Parent = NewGuiPart150
  1683. NewGuiPart151.BackgroundTransparency = 1
  1684. NewGuiPart151.Position = UDim2.new(0, 4, 0, 0)
  1685. NewGuiPart151.Size = UDim2.new(1, -4, 1, 0)
  1686. NewGuiPart151.Font = Enum.Font.SourceSans
  1687. NewGuiPart151.FontSize = Enum.FontSize.Size14
  1688. NewGuiPart151.Text = "Remote Debugger"
  1689. NewGuiPart151.TextColor3 = Color3.new(0, 0, 0)
  1690. NewGuiPart151.TextXAlignment = Enum.TextXAlignment.Left
  1691.  
  1692. NewGuiPart152.Name = "Desc"
  1693. NewGuiPart152.Parent = NewGuiPart149
  1694. NewGuiPart152.BackgroundColor3 = Color3.new(1, 1, 1)
  1695. NewGuiPart152.BackgroundTransparency = 1
  1696. NewGuiPart152.Position = UDim2.new(0, 0, 0, 20)
  1697. NewGuiPart152.Size = UDim2.new(1, 0, 0, 40)
  1698. NewGuiPart152.Font = Enum.Font.SourceSans
  1699. NewGuiPart152.FontSize = Enum.FontSize.Size32
  1700. NewGuiPart152.Text = "Have fun with remotes"
  1701. NewGuiPart152.TextWrapped = true
  1702. return NewGuiPart1
  1703. end
  1704. local D_E_X = CreateGui()
  1705. D_E_X.Parent = game.Players.LocalPlayer.PlayerGui
  1706. spawn(function()
  1707.         local Gui = D_E_X
  1708.        
  1709.  
  1710. local IntroFrame = Gui:WaitForChild("IntroFrame")
  1711.  
  1712. local SideMenu = Gui:WaitForChild("SideMenu")
  1713. local OpenToggleButton = Gui:WaitForChild("Toggle")
  1714. local CloseToggleButton = SideMenu:WaitForChild("Toggle")
  1715. local OpenScriptEditorButton = SideMenu:WaitForChild("OpenScriptEditor")
  1716.  
  1717. local ScriptEditor = Gui:WaitForChild("ScriptEditor")
  1718.  
  1719. local SlideOut = SideMenu:WaitForChild("SlideOut")
  1720. local SlideFrame = SlideOut:WaitForChild("SlideFrame")
  1721. local Slant = SideMenu:WaitForChild("Slant")
  1722.  
  1723. local ExplorerButton = SlideFrame:WaitForChild("Explorer")
  1724. local SettingsButton = SlideFrame:WaitForChild("Settings")
  1725.  
  1726. local SelectionBox = Instance.new("SelectionBox")
  1727. SelectionBox.Parent = Gui
  1728.  
  1729. local ExplorerPanel = Gui:WaitForChild("ExplorerPanel")
  1730. local PropertiesFrame = Gui:WaitForChild("PropertiesFrame")
  1731. local SaveMapWindow = Gui:WaitForChild("SaveMapWindow")
  1732. local RemoteDebugWindow = Gui:WaitForChild("RemoteDebugWindow")
  1733.  
  1734. local SettingsPanel = Gui:WaitForChild("SettingsPanel")
  1735. local SettingsListener = SettingsPanel:WaitForChild("GetSetting")
  1736. local SettingTemplate = SettingsPanel:WaitForChild("SettingTemplate")
  1737. local SettingList = SettingsPanel:WaitForChild("SettingList")
  1738.  
  1739. local SaveMapCopyList = SaveMapWindow:WaitForChild("CopyList")
  1740. local SaveMapSettingFrame = SaveMapWindow:WaitForChild("MapSettings")
  1741. local SaveMapName = SaveMapWindow:WaitForChild("FileName")
  1742. local SaveMapButton = SaveMapWindow:WaitForChild("Save")
  1743. local SaveMapCopyTemplate = SaveMapWindow:WaitForChild("Entry")
  1744. local SaveMapSettings = {
  1745.         CopyWhat = {
  1746.                 Workspace = true,
  1747.                 Lighting = true,
  1748.                 ReplicatedStorage = true,
  1749.                 ReplicatedFirst = true,
  1750.                 StarterPack = true,
  1751.                 StarterGui = true,
  1752.                 StarterPlayer = true
  1753.         },
  1754.         SaveScripts = true,
  1755.         SaveTerrain = true,
  1756.         LightingProperties = true,
  1757.         CameraInstances = true
  1758. }
  1759.  
  1760. local SelectionChanged = ExplorerPanel:WaitForChild("SelectionChanged")
  1761. local GetSelection = ExplorerPanel:WaitForChild("GetSelection")
  1762. local SetSelection = ExplorerPanel:WaitForChild("SetSelection")
  1763.  
  1764. local Player = game:GetService("Players").LocalPlayer
  1765. local Mouse = Player:GetMouse()
  1766.  
  1767. local CurrentWindow = "Nothing c:"
  1768. local Windows = {
  1769.         Explorer = {
  1770.                 ExplorerPanel,
  1771.                 PropertiesFrame
  1772.         },
  1773.         Settings = {SettingsPanel},
  1774.         SaveMap = {SaveMapWindow},
  1775.         Remotes = {RemoteDebugWindow}
  1776. }
  1777.  
  1778. function switchWindows(wName,over)
  1779.         if CurrentWindow == wName and not over then return end
  1780.        
  1781.         local count = 0
  1782.        
  1783.         for i,v in pairs(Windows) do
  1784.                 count = 0
  1785.                 if i ~= wName then
  1786.                         for _,c in pairs(v) do c:TweenPosition(UDim2.new(1, 30, count * 0.5, count * 36), "Out", "Quad", 0.5, true) count = count + 1 end
  1787.                 end
  1788.         end
  1789.        
  1790.         count = 0
  1791.        
  1792.         if Windows[wName] then
  1793.                 for _,c in pairs(Windows[wName]) do c:TweenPosition(UDim2.new(1, -300, count * 0.5, count * 36), "Out", "Quad", 0.5, true) count = count + 1 end
  1794.         end
  1795.        
  1796.         if wName ~= "Nothing c:" then
  1797.                 CurrentWindow = wName
  1798.                 for i,v in pairs(SlideFrame:GetChildren()) do
  1799.                         v.BackgroundTransparency = 1
  1800.                         v.Icon.ImageColor3 = Color3.new(70/255, 70/255, 70/255)
  1801.                 end
  1802.                 if SlideFrame:FindFirstChild(wName) then
  1803.                         SlideFrame[wName].BackgroundTransparency = 0.5
  1804.                         SlideFrame[wName].Icon.ImageColor3 = Color3.new(0,0,0)
  1805.                 end
  1806.         end
  1807. end
  1808.  
  1809. function toggleDex(on)
  1810.         if on then
  1811.                 SideMenu:TweenPosition(UDim2.new(1, -330, 0, 0), "Out", "Quad", 0.5, true)
  1812.                 OpenToggleButton:TweenPosition(UDim2.new(1,0,0,0), "Out", "Quad", 0.5, true)
  1813.                 switchWindows(CurrentWindow,true)
  1814.         else
  1815.                 SideMenu:TweenPosition(UDim2.new(1, 0, 0, 0), "Out", "Quad", 0.5, true)
  1816.                 OpenToggleButton:TweenPosition(UDim2.new(1,-30,0,0), "Out", "Quad", 0.5, true)
  1817.                 switchWindows("Nothing c:")
  1818.         end
  1819. end
  1820.  
  1821. local Settings = {
  1822.         ClickSelect = false,
  1823.         SelBox = false,
  1824.         ClearProps = false,
  1825.         SelectUngrouped = true,
  1826.         SaveInstanceScripts = true
  1827. }
  1828.  
  1829. function ReturnSetting(set)
  1830.         if set == "ClearProps" then
  1831.                 return Settings.ClearProps
  1832.         elseif set == "SelectUngrouped" then
  1833.                 return Settings.SelectUngrouped
  1834.         end
  1835. end
  1836.  
  1837. OpenToggleButton.MouseButton1Up:connect(function()
  1838.         toggleDex(true)
  1839. end)
  1840.  
  1841. OpenScriptEditorButton.MouseButton1Up:connect(function()
  1842.         if OpenScriptEditorButton.Active then
  1843.                 ScriptEditor.Visible = true
  1844.         end
  1845. end)
  1846.  
  1847. CloseToggleButton.MouseButton1Up:connect(function()
  1848.         if CloseToggleButton.Active then
  1849.                 toggleDex(false)
  1850.         end
  1851. end)
  1852.  
  1853. for i,v in pairs(SlideFrame:GetChildren()) do
  1854.         v.MouseButton1Click:connect(function()
  1855.                 switchWindows(v.Name)
  1856.         end)
  1857.        
  1858.         v.MouseEnter:connect(function()v.BackgroundTransparency = 0.5 end)
  1859.         v.MouseLeave:connect(function()if CurrentWindow~=v.Name then v.BackgroundTransparency = 1 end end)
  1860. end
  1861.  
  1862.  
  1863. function createSetting(name,interName,defaultOn)
  1864.         local newSetting = SettingTemplate:Clone()
  1865.         newSetting.Position = UDim2.new(0,0,0,#SettingList:GetChildren() * 60)
  1866.         newSetting.SName.Text = name
  1867.        
  1868.         local function toggle(on)
  1869.                 if on then
  1870.                         newSetting.Change.Bar:TweenPosition(UDim2.new(0,32,0,-2),Enum.EasingDirection.Out,Enum.EasingStyle.Quart,0.25,true)
  1871.                         newSetting.Change.OnBar:TweenSize(UDim2.new(0,34,0,15),Enum.EasingDirection.Out,Enum.EasingStyle.Quart,0.25,true)
  1872.                         newSetting.Status.Text = "On"
  1873.                         Settings[interName] = true
  1874.                 else
  1875.                         newSetting.Change.Bar:TweenPosition(UDim2.new(0,-2,0,-2),Enum.EasingDirection.Out,Enum.EasingStyle.Quart,0.25,true)
  1876.                         newSetting.Change.OnBar:TweenSize(UDim2.new(0,0,0,15),Enum.EasingDirection.Out,Enum.EasingStyle.Quart,0.25,true)
  1877.                         newSetting.Status.Text = "Off"
  1878.                         Settings[interName] = false
  1879.                 end
  1880.         end     
  1881.        
  1882.         newSetting.Change.MouseButton1Click:connect(function()
  1883.                 toggle(not Settings[interName])
  1884.         end)
  1885.        
  1886.         newSetting.Visible = true
  1887.         newSetting.Parent = SettingList
  1888.        
  1889.         if defaultOn then
  1890.                 toggle(true)
  1891.         end
  1892. end
  1893.  
  1894. createSetting("Click part to select","ClickSelect",false)
  1895. createSetting("Selection Box","SelBox",false)
  1896. createSetting("Clear property value on focus","ClearProps",false)
  1897. createSetting("Select ungrouped models","SelectUngrouped",true)
  1898. createSetting("SaveInstance decompiles scripts","SaveInstanceScripts",true)
  1899.  
  1900. local function getSelection()
  1901.         local t = GetSelection:Invoke()
  1902.         if t and #t > 0 then
  1903.                 return t[1]
  1904.         else
  1905.                 return nil
  1906.         end
  1907. end
  1908.  
  1909. Mouse.Button1Down:connect(function()
  1910.         if CurrentWindow == "Explorer" and Settings.ClickSelect then
  1911.                 local target = Mouse.Target
  1912.                 if target then
  1913.                         SetSelection:Invoke({target})
  1914.                 end
  1915.         end
  1916. end)
  1917.  
  1918. SelectionChanged.Event:connect(function()
  1919.         if Settings.SelBox then
  1920.                 local success,err = pcall(function()
  1921.                         local selection = getSelection()
  1922.                         SelectionBox.Adornee = selection
  1923.                 end)
  1924.                 if err then
  1925.                         SelectionBox.Adornee = nil
  1926.                 end
  1927.         end
  1928. end)
  1929.  
  1930. SettingsListener.OnInvoke = ReturnSetting
  1931.  
  1932. -- Map Copier
  1933.  
  1934. function createMapSetting(obj,interName,defaultOn)
  1935.         local function toggle(on)
  1936.                 if on then
  1937.                         obj.Change.Bar:TweenPosition(UDim2.new(0,32,0,-2),Enum.EasingDirection.Out,Enum.EasingStyle.Quart,0.25,true)
  1938.                         obj.Change.OnBar:TweenSize(UDim2.new(0,34,0,15),Enum.EasingDirection.Out,Enum.EasingStyle.Quart,0.25,true)
  1939.                         obj.Status.Text = "On"
  1940.                         SaveMapSettings[interName] = true
  1941.                 else
  1942.                         obj.Change.Bar:TweenPosition(UDim2.new(0,-2,0,-2),Enum.EasingDirection.Out,Enum.EasingStyle.Quart,0.25,true)
  1943.                         obj.Change.OnBar:TweenSize(UDim2.new(0,0,0,15),Enum.EasingDirection.Out,Enum.EasingStyle.Quart,0.25,true)
  1944.                         obj.Status.Text = "Off"
  1945.                         SaveMapSettings[interName] = false
  1946.                 end
  1947.         end     
  1948.        
  1949.         obj.Change.MouseButton1Click:connect(function()
  1950.                 toggle(not SaveMapSettings[interName])
  1951.         end)
  1952.        
  1953.         obj.Visible = true
  1954.         obj.Parent = SaveMapSettingFrame
  1955.        
  1956.         if defaultOn then
  1957.                 toggle(true)
  1958.         end
  1959. end
  1960.  
  1961. function createCopyWhatSetting(serv)
  1962.         if SaveMapSettings.CopyWhat[serv] then
  1963.                 local newSetting = SaveMapCopyTemplate:Clone()
  1964.                 newSetting.Position = UDim2.new(0,0,0,#SaveMapCopyList:GetChildren() * 22 + 5)
  1965.                 newSetting.Info.Text = serv
  1966.                
  1967.                 local function toggle(on)
  1968.                         if on then
  1969.                                 newSetting.Change.enabled.Visible = true
  1970.                                 SaveMapSettings.CopyWhat[serv] = true
  1971.                         else
  1972.                                 newSetting.Change.enabled.Visible = false
  1973.                                 SaveMapSettings.CopyWhat[serv] = false
  1974.                         end
  1975.                 end     
  1976.        
  1977.                 newSetting.Change.MouseButton1Click:connect(function()
  1978.                         toggle(not SaveMapSettings.CopyWhat[serv])
  1979.                 end)
  1980.                
  1981.                 newSetting.Visible = true
  1982.                 newSetting.Parent = SaveMapCopyList
  1983.         end
  1984. end
  1985.  
  1986. createMapSetting(SaveMapSettingFrame.Scripts,"SaveScripts",true)
  1987. createMapSetting(SaveMapSettingFrame.Terrain,"SaveTerrain",true)
  1988. createMapSetting(SaveMapSettingFrame.Lighting,"LightingProperties",true)
  1989. createMapSetting(SaveMapSettingFrame.CameraInstances,"CameraInstances",true)
  1990.  
  1991. createCopyWhatSetting("Workspace")
  1992. createCopyWhatSetting("Lighting")
  1993. createCopyWhatSetting("ReplicatedStorage")
  1994. createCopyWhatSetting("ReplicatedFirst")
  1995. createCopyWhatSetting("StarterPack")
  1996. createCopyWhatSetting("StarterGui")
  1997. createCopyWhatSetting("StarterPlayer")
  1998.  
  1999. SaveMapName.Text = tostring(game.PlaceId).."MapCopy"
  2000.  
  2001. SaveMapButton.MouseButton1Click:connect(function()
  2002.         local copyWhat = {}
  2003.  
  2004.         local copyGroup = Instance.new("Model",game.ReplicatedStorage)
  2005.  
  2006.         local copyScripts = SaveMapSettings.SaveScripts
  2007.  
  2008.         local copyTerrain = SaveMapSettings.SaveTerrain
  2009.  
  2010.         local lightingProperties = SaveMapSettings.LightingProperties
  2011.  
  2012.         local cameraInstances = SaveMapSettings.CameraInstances
  2013.  
  2014.         -----------------------------------------------------------------------------------
  2015.  
  2016.         for i,v in pairs(SaveMapSettings.CopyWhat) do
  2017.                 if v then
  2018.                         table.insert(copyWhat,i)
  2019.                 end
  2020.         end
  2021.  
  2022.         local consoleFunc = printconsole or writeconsole
  2023.  
  2024.         if consoleFunc then
  2025.                 consoleFunc("Raspberry Pi's place copier loaded.")
  2026.                 consoleFunc("Copying map of game "..tostring(game.PlaceId)..".")
  2027.         end
  2028.  
  2029.         function archivable(root)
  2030.                 for i,v in pairs(root:GetChildren()) do
  2031.                         if not game.Players:GetPlayerFromCharacter(v) then
  2032.                                 v.Archivable = true
  2033.                                 archivable(v)
  2034.                         end
  2035.                 end
  2036.         end
  2037.  
  2038.         function decompileS(root)
  2039.                 for i,v in pairs(root:GetChildren()) do
  2040.                         pcall(function()
  2041.                                 if v:IsA("LocalScript") then
  2042.                                         local isDisabled = v.Disabled
  2043.                                         v.Disabled = true
  2044.                                         v.Source = decompile(v)
  2045.                                         v.Disabled = isDisabled
  2046.                                
  2047.                                         if v.Source == "" then
  2048.                                                 if consoleFunc then consoleFunc("LocalScript "..v.Name.." had a problem decompiling.") end
  2049.                                         else
  2050.                                                 if consoleFunc then consoleFunc("LocalScript "..v.Name.." decompiled.") end
  2051.                                         end
  2052.                                 elseif v:IsA("ModuleScript") then
  2053.                                         v.Source = decompile(v)
  2054.                                
  2055.                                         if v.Source == "" then
  2056.                                                 if consoleFunc then consoleFunc("ModuleScript "..v.Name.." had a problem decompiling.") end
  2057.                                         else
  2058.                                                 if consoleFunc then consoleFunc("ModuleScript "..v.Name.." decompiled.") end
  2059.                                         end
  2060.                                 end
  2061.                         end)
  2062.                         decompileS(v)
  2063.                 end
  2064.         end
  2065.  
  2066.         for i,v in pairs(copyWhat) do archivable(game[v]) end
  2067.  
  2068.         for j,obj in pairs(copyWhat) do
  2069.                 if obj ~= "StarterPlayer" then
  2070.                         local newFolder = Instance.new("Folder",copyGroup)
  2071.                         newFolder.Name = obj
  2072.                         for i,v in pairs(game[obj]:GetChildren()) do
  2073.                                 if v ~= copyGroup then
  2074.                                         pcall(function()
  2075.                                                 v:Clone().Parent = newFolder
  2076.                                         end)
  2077.                                 end
  2078.                         end
  2079.                 else
  2080.                         local newFolder = Instance.new("Model",copyGroup)
  2081.                         newFolder.Name = "StarterPlayer"
  2082.                         for i,v in pairs(game[obj]:GetChildren()) do
  2083.                                 local newObj = Instance.new("Folder",newFolder)
  2084.                                 newObj.Name = v.Name
  2085.                                 for _,c in pairs(v:GetChildren()) do
  2086.                                         if c.Name ~= "ControlScript" and c.Name ~= "CameraScript" then
  2087.                                                 c:Clone().Parent = newObj
  2088.                                         end
  2089.                                 end
  2090.                         end
  2091.                 end
  2092.         end
  2093.  
  2094.         if workspace.CurrentCamera and cameraInstances then
  2095.                 local cameraFolder = Instance.new("Model",copyGroup)
  2096.                 cameraFolder.Name = "CameraItems"
  2097.                 for i,v in pairs(workspace.CurrentCamera:GetChildren()) do v:Clone().Parent = cameraFolder end
  2098.         end
  2099.  
  2100.         if copyTerrain then
  2101.                 local myTerrain = workspace.Terrain:CopyRegion(workspace.Terrain.MaxExtents)
  2102.                 myTerrain.Parent = copyGroup
  2103.         end
  2104.  
  2105.         function saveProp(obj,prop,par)
  2106.                 local myProp = obj[prop]
  2107.                 if type(myProp) == "boolean" then
  2108.                         local newProp = Instance.new("BoolValue",par)
  2109.                         newProp.Name = prop
  2110.                         newProp.Value = myProp
  2111.                 elseif type(myProp) == "number" then
  2112.                         local newProp = Instance.new("IntValue",par)
  2113.                         newProp.Name = prop
  2114.                         newProp.Value = myProp
  2115.                 elseif type(myProp) == "string" then
  2116.                         local newProp = Instance.new("StringValue",par)
  2117.                         newProp.Name = prop
  2118.                         newProp.Value = myProp
  2119.                 elseif type(myProp) == "userdata" then -- Assume Color3
  2120.                         pcall(function()
  2121.                                 local newProp = Instance.new("Color3Value",par)
  2122.                                 newProp.Name = prop
  2123.                                 newProp.Value = myProp
  2124.                         end)
  2125.                 end
  2126.         end
  2127.  
  2128.         if lightingProperties then
  2129.                 local lightingProps = Instance.new("Model",copyGroup)
  2130.                 lightingProps.Name = "LightingProperties"
  2131.        
  2132.                 saveProp(game.Lighting,"Ambient",lightingProps)
  2133.                 saveProp(game.Lighting,"Brightness",lightingProps)
  2134.                 saveProp(game.Lighting,"ColorShift_Bottom",lightingProps)
  2135.                 saveProp(game.Lighting,"ColorShift_Top",lightingProps)
  2136.                 saveProp(game.Lighting,"GlobalShadows",lightingProps)
  2137.                 saveProp(game.Lighting,"OutdoorAmbient",lightingProps)
  2138.                 saveProp(game.Lighting,"Outlines",lightingProps)
  2139.                 saveProp(game.Lighting,"GeographicLatitude",lightingProps)
  2140.                 saveProp(game.Lighting,"TimeOfDay",lightingProps)
  2141.                 saveProp(game.Lighting,"FogColor",lightingProps)
  2142.                 saveProp(game.Lighting,"FogEnd",lightingProps)
  2143.                 saveProp(game.Lighting,"FogStart",lightingProps)
  2144.         end
  2145.  
  2146.         if decompile and copyScripts then
  2147.                 decompileS(copyGroup)
  2148.         end
  2149.  
  2150.         if SaveInstance then
  2151.                 SaveInstance(copyGroup,SaveMapName.Text..".rbxm")
  2152.         elseif saveinstance then
  2153.                 saveinstance(getelysianpath()..SaveMapName.Text..".rbxm",copyGroup)
  2154.         end
  2155.         --print("Saved!")
  2156.         if consoleFunc then
  2157.                 consoleFunc("The map has been copied.")
  2158.         end
  2159.         SaveMapButton.Text = "The map has been saved"
  2160.         wait(5)
  2161.         SaveMapButton.Text = "Save"
  2162. end)
  2163.  
  2164. -- End Copier
  2165.  
  2166. wait()
  2167.  
  2168. IntroFrame:TweenPosition(UDim2.new(1,-300,0,0),Enum.EasingDirection.Out,Enum.EasingStyle.Quart,0.5,true)
  2169.  
  2170. switchWindows("Explorer")
  2171.  
  2172. wait(1)
  2173.  
  2174. SideMenu.Visible = true
  2175.  
  2176. for i = 0,1,0.1 do
  2177.         IntroFrame.BackgroundTransparency = i
  2178.         IntroFrame.Main.BackgroundTransparency = i
  2179.         IntroFrame.Slant.ImageTransparency = i
  2180.         IntroFrame.Title.TextTransparency = i
  2181.         IntroFrame.Version.TextTransparency = i
  2182.         IntroFrame.Creator.TextTransparency = i
  2183.         wait()
  2184. end
  2185.  
  2186. IntroFrame.Visible = false
  2187.  
  2188. SlideFrame:TweenPosition(UDim2.new(0,0,0,0),Enum.EasingDirection.Out,Enum.EasingStyle.Quart,0.5,true)
  2189. OpenScriptEditorButton:TweenPosition(UDim2.new(0,0,0,180),Enum.EasingDirection.Out,Enum.EasingStyle.Quart,0.5,true)
  2190. CloseToggleButton:TweenPosition(UDim2.new(0,0,0,210),Enum.EasingDirection.Out,Enum.EasingStyle.Quart,0.5,true)
  2191. Slant:TweenPosition(UDim2.new(0,0,0,240),Enum.EasingDirection.Out,Enum.EasingStyle.Quart,0.5,true)
  2192.  
  2193. wait(0.5)
  2194.  
  2195. for i = 1,0,-0.1 do
  2196.         OpenScriptEditorButton.Icon.ImageTransparency = i
  2197.         CloseToggleButton.TextTransparency = i
  2198.         wait()
  2199. end
  2200.  
  2201. CloseToggleButton.Active = true
  2202. CloseToggleButton.AutoButtonColor = true
  2203.  
  2204. OpenScriptEditorButton.Active = true
  2205. OpenScriptEditorButton.AutoButtonColor = true
  2206. end)
  2207. spawn(function()
  2208.         -- initial states
  2209. local Option = {
  2210.         -- can modify object parents in the hierarchy
  2211.         Modifiable = false;
  2212.         -- can select objects
  2213.         Selectable = true;
  2214. }
  2215.  
  2216. -- MERELY
  2217.  
  2218. Option.Modifiable = true
  2219.  
  2220. -- END MERELY
  2221.  
  2222. -- general size of GUI objects, in pixels
  2223. local GUI_SIZE = 16
  2224. -- padding between items within each entry
  2225. local ENTRY_PADDING = 1
  2226. -- padding between each entry
  2227. local ENTRY_MARGIN = 1
  2228.  
  2229. local Input = game:GetService("UserInputService")
  2230. local HoldingCtrl = false
  2231. local HoldingShift = false
  2232.  
  2233. --[[
  2234.  
  2235. # Explorer Panel
  2236.  
  2237. A GUI panel that displays the game hierarchy.
  2238.  
  2239.  
  2240. ## Selection Bindables
  2241.  
  2242. - `Function GetSelection ( )`
  2243.  
  2244.         Returns an array of objects representing the objects currently
  2245.         selected in the panel.
  2246.  
  2247. - `Function SetSelection ( Objects selection )`
  2248.  
  2249.         Sets the objects that are selected in the panel. `selection` is an array
  2250.         of objects.
  2251.  
  2252. - `Event SelectionChanged ( )`
  2253.  
  2254.         Fired after the selection changes.
  2255.  
  2256.  
  2257. ## Option Bindables
  2258.  
  2259. - `Function GetOption ( string optionName )`
  2260.  
  2261.         If `optionName` is given, returns the value of that option. Otherwise,
  2262.         returns a table of options and their current values.
  2263.  
  2264. - `Function SetOption ( string optionName, bool value )`
  2265.  
  2266.         Sets `optionName` to `value`.
  2267.  
  2268.         Options:
  2269.  
  2270.         - Modifiable
  2271.  
  2272.                 Whether objects can be modified by the panel.
  2273.  
  2274.                 Note that modifying objects depends on being able to select them. If
  2275.                 Selectable is false, then Actions will not be available. Reparenting
  2276.                 is still possible, but only for the dragged object.
  2277.  
  2278.         - Selectable
  2279.  
  2280.                 Whether objects can be selected.
  2281.  
  2282.                 If Modifiable is false, then left-clicking will perform a drag
  2283.                 selection.
  2284.  
  2285. ## Updates
  2286.  
  2287. - 2013-09-18
  2288.         - Fixed explorer icons to match studio explorer.
  2289.  
  2290. - 2013-09-14
  2291.         - Added GetOption and SetOption bindables.
  2292.                 - Option: Modifiable; sets whether objects can be modified by the panel.
  2293.                 - Option: Selectable; sets whether objects can be selected.
  2294.         - Slight modification to left-click selection behavior.
  2295.         - Improved layout and scaling.
  2296.  
  2297. - 2013-09-13
  2298.         - Added drag to reparent objects.
  2299.                 - Left-click to select/deselect object.
  2300.                 - Left-click and drag unselected object to reparent single object.
  2301.                 - Left-click and drag selected object to move reparent entire selection.
  2302.                 - Right-click while dragging to cancel.
  2303.  
  2304. - 2013-09-11
  2305.         - Added explorer panel header with actions.
  2306.                 - Added Cut action.
  2307.                 - Added Copy action.
  2308.                 - Added Paste action.
  2309.                 - Added Delete action.
  2310.         - Added drag selection.
  2311.                 - Left-click: Add to selection on drag.
  2312.                 - Right-click: Add to or remove from selection on drag.
  2313.         - Ensured SelectionChanged fires only when the selection actually changes.
  2314.         - Added documentation and change log.
  2315.         - Fixed thread issue.
  2316.  
  2317. - 2013-09-09
  2318.         - Added basic multi-selection.
  2319.                 - Left-click to set selection.
  2320.                 - Right-click to add to or remove from selection.
  2321.         - Removed "Selection" ObjectValue.
  2322.                 - Added GetSelection BindableFunction.
  2323.                 - Added SetSelection BindableFunction.
  2324.                 - Added SelectionChanged BindableEvent.
  2325.         - Changed font to SourceSans.
  2326.  
  2327. - 2013-08-31
  2328.         - Improved GUI sizing based off of `GUI_SIZE` constant.
  2329.         - Automatic font size detection.
  2330.  
  2331. - 2013-08-27
  2332.         - Initial explorer panel.
  2333.  
  2334.  
  2335. ## Todo
  2336.  
  2337. - Sorting
  2338.         - by ExplorerOrder
  2339.         - by children
  2340.         - by name
  2341. - Drag objects to reparent
  2342.  
  2343. ]]
  2344.  
  2345. local ENTRY_SIZE = GUI_SIZE + ENTRY_PADDING*2
  2346. local ENTRY_BOUND = ENTRY_SIZE + ENTRY_MARGIN
  2347. local HEADER_SIZE = ENTRY_SIZE*2
  2348.  
  2349. local FONT = 'SourceSans'
  2350. local FONT_SIZE do
  2351.         local size = {8,9,10,11,12,14,18,24,36,48}
  2352.         local s
  2353.         local n = math.huge
  2354.         for i = 1,#size do
  2355.                 if size[i] <= GUI_SIZE then
  2356.                         FONT_SIZE = i - 1
  2357.                 end
  2358.         end
  2359. end
  2360.  
  2361. local GuiColor = {
  2362.         Background      = Color3.new(233/255, 233/255, 233/255);
  2363.         Border          = Color3.new(149/255, 149/255, 149/255);
  2364.         Selected        = Color3.new( 96/255, 140/255, 211/255);
  2365.         BorderSelected  = Color3.new( 86/255, 125/255, 188/255);
  2366.         Text            = Color3.new(  0/255,   0/255,   0/255);
  2367.         TextDisabled    = Color3.new(128/255, 128/255, 128/255);
  2368.         TextSelected    = Color3.new(255/255, 255/255, 255/255);
  2369.         Button          = Color3.new(221/255, 221/255, 221/255);
  2370.         ButtonBorder    = Color3.new(149/255, 149/255, 149/255);
  2371.         ButtonSelected  = Color3.new(255/255,   0/255,   0/255);
  2372.         Field           = Color3.new(255/255, 255/255, 255/255);
  2373.         FieldBorder     = Color3.new(191/255, 191/255, 191/255);
  2374.         TitleBackground = Color3.new(178/255, 178/255, 178/255);
  2375. }
  2376.  
  2377. ----------------------------------------------------------------
  2378. ----------------------------------------------------------------
  2379. ----------------------------------------------------------------
  2380. ----------------------------------------------------------------
  2381. ---- Icon map constants
  2382.  
  2383. local MAP_ID = 483448923
  2384.  
  2385. -- Indices based on implementation of Icon function.
  2386. local ACTION_CUT                 = 160
  2387. local ACTION_COPY                = 161
  2388. local ACTION_PASTE               = 162
  2389. local ACTION_DELETE              = 163
  2390. local ACTION_SORT                = 164
  2391. local ACTION_CUT_OVER            = 174
  2392. local ACTION_COPY_OVER           = 175
  2393. local ACTION_PASTE_OVER          = 176
  2394. local ACTION_DELETE_OVER         = 177
  2395. local ACTION_SORT_OVER           = 178
  2396. local ACTION_EDITQUICKACCESS = 190
  2397. local ACTION_FREEZE              = 188
  2398. local ACTION_STARRED             = 189
  2399. local ACTION_ADDSTAR             = 184
  2400. local ACTION_ADDSTAR_OVER        = 187
  2401.  
  2402. local NODE_COLLAPSED      = 165
  2403. local NODE_EXPANDED       = 166
  2404. local NODE_COLLAPSED_OVER = 179
  2405. local NODE_EXPANDED_OVER  = 180
  2406.  
  2407. local ExplorerIndex = {
  2408.         ["Accessory"] = 32;
  2409.         ["Accoutrement"] = 32;
  2410.         ["AdService"] = 73;
  2411.         ["Animation"] = 60;
  2412.         ["AnimationController"] = 60;
  2413.         ["AnimationTrack"] = 60;
  2414.         ["Animator"] = 60;
  2415.         ["ArcHandles"] = 56;
  2416.         ["AssetService"] = 72;
  2417.         ["Attachment"] = 34;
  2418.         ["Backpack"] = 20;
  2419.         ["BadgeService"] = 75;
  2420.         ["BallSocketConstraint"] = 89;
  2421.         ["BillboardGui"] = 64;
  2422.         ["BinaryStringValue"] = 4;
  2423.         ["BindableEvent"] = 67;
  2424.         ["BindableFunction"] = 66;
  2425.         ["BlockMesh"] = 8;
  2426.         ["BloomEffect"] = 90;
  2427.         ["BlurEffect"] = 90;
  2428.         ["BodyAngularVelocity"] = 14;
  2429.         ["BodyForce"] = 14;
  2430.         ["BodyGyro"] = 14;
  2431.         ["BodyPosition"] = 14;
  2432.         ["BodyThrust"] = 14;
  2433.         ["BodyVelocity"] = 14;
  2434.         ["BoolValue"] = 4;
  2435.         ["BoxHandleAdornment"] = 54;
  2436.         ["BrickColorValue"] = 4;
  2437.         ["Camera"] = 5;
  2438.         ["CFrameValue"] = 4;
  2439.         ["CharacterMesh"] = 60;
  2440.         ["Chat"] = 33;
  2441.         ["ClickDetector"] = 41;
  2442.         ["CollectionService"] = 30;
  2443.         ["Color3Value"] = 4;
  2444.         ["ColorCorrectionEffect"] = 90;
  2445.         ["ConeHandleAdornment"] = 54;
  2446.         ["Configuration"] = 58;
  2447.         ["ContentProvider"] = 72;
  2448.         ["ContextActionService"] = 41;
  2449.         ["CoreGui"] = 46;
  2450.         ["CoreScript"] = 18;
  2451.         ["CornerWedgePart"] = 1;
  2452.         ["CustomEvent"] = 4;
  2453.         ["CustomEventReceiver"] = 4;
  2454.         ["CylinderHandleAdornment"] = 54;
  2455.         ["CylinderMesh"] = 8;
  2456.         ["CylindricalConstraint"] = 89;
  2457.         ["Debris"] = 30;
  2458.         ["Decal"] = 7;
  2459.         ["Dialog"] = 62;
  2460.         ["DialogChoice"] = 63;
  2461.         ["DoubleConstrainedValue"] = 4;
  2462.         ["Explosion"] = 36;
  2463.         ["FileMesh"] = 8;
  2464.         ["Fire"] = 61;
  2465.         ["Flag"] = 38;
  2466.         ["FlagStand"] = 39;
  2467.         ["FloorWire"] = 4;
  2468.         ["Folder"] = 70;
  2469.         ["ForceField"] = 37;
  2470.         ["Frame"] = 48;
  2471.         ["GamePassService"] = 19;
  2472.         ["Glue"] = 34;
  2473.         ["GuiButton"] = 52;
  2474.         ["GuiMain"] = 47;
  2475.         ["GuiService"] = 47;
  2476.         ["Handles"] = 53;
  2477.         ["HapticService"] = 84;
  2478.         ["Hat"] = 45;
  2479.         ["HingeConstraint"] = 89;
  2480.         ["Hint"] = 33;
  2481.         ["HopperBin"] = 22;
  2482.         ["HttpService"] = 76;
  2483.         ["Humanoid"] = 9;
  2484.         ["ImageButton"] = 52;
  2485.         ["ImageLabel"] = 49;
  2486.         ["InsertService"] = 72;
  2487.         ["IntConstrainedValue"] = 4;
  2488.         ["IntValue"] = 4;
  2489.         ["JointInstance"] = 34;
  2490.         ["JointsService"] = 34;
  2491.         ["Keyframe"] = 60;
  2492.         ["KeyframeSequence"] = 60;
  2493.         ["KeyframeSequenceProvider"] = 60;
  2494.         ["Lighting"] = 13;
  2495.         ["LineHandleAdornment"] = 54;
  2496.         ["LocalScript"] = 18;
  2497.         ["LogService"] = 87;
  2498.         ["MarketplaceService"] = 46;
  2499.         ["Message"] = 33;
  2500.         ["Model"] = 2;
  2501.         ["ModuleScript"] = 71;
  2502.         ["Motor"] = 34;
  2503.         ["Motor6D"] = 34;
  2504.         ["MoveToConstraint"] = 89;
  2505.         ["NegateOperation"] = 78;
  2506.         ["NetworkClient"] = 16;
  2507.         ["NetworkReplicator"] = 29;
  2508.         ["NetworkServer"] = 15;
  2509.         ["NumberValue"] = 4;
  2510.         ["ObjectValue"] = 4;
  2511.         ["Pants"] = 44;
  2512.         ["ParallelRampPart"] = 1;
  2513.         ["Part"] = 1;
  2514.         ["ParticleEmitter"] = 69;
  2515.         ["PartPairLasso"] = 57;
  2516.         ["PathfindingService"] = 37;
  2517.         ["Platform"] = 35;
  2518.         ["Player"] = 12;
  2519.         ["PlayerGui"] = 46;
  2520.         ["Players"] = 21;
  2521.         ["PlayerScripts"] = 82;
  2522.         ["PointLight"] = 13;
  2523.         ["PointsService"] = 83;
  2524.         ["Pose"] = 60;
  2525.         ["PrismaticConstraint"] = 89;
  2526.         ["PrismPart"] = 1;
  2527.         ["PyramidPart"] = 1;
  2528.         ["RayValue"] = 4;
  2529.         ["ReflectionMetadata"] = 86;
  2530.         ["ReflectionMetadataCallbacks"] = 86;
  2531.         ["ReflectionMetadataClass"] = 86;
  2532.         ["ReflectionMetadataClasses"] = 86;
  2533.         ["ReflectionMetadataEnum"] = 86;
  2534.         ["ReflectionMetadataEnumItem"] = 86;
  2535.         ["ReflectionMetadataEnums"] = 86;
  2536.         ["ReflectionMetadataEvents"] = 86;
  2537.         ["ReflectionMetadataFunctions"] = 86;
  2538.         ["ReflectionMetadataMember"] = 86;
  2539.         ["ReflectionMetadataProperties"] = 86;
  2540.         ["ReflectionMetadataYieldFunctions"] = 86;
  2541.         ["RemoteEvent"] = 80;
  2542.         ["RemoteFunction"] = 79;
  2543.         ["ReplicatedFirst"] = 72;
  2544.         ["ReplicatedStorage"] = 72;
  2545.         ["RightAngleRampPart"] = 1;
  2546.         ["RocketPropulsion"] = 14;
  2547.         ["RodConstraint"] = 89;
  2548.         ["RopeConstraint"] = 89;
  2549.         ["Rotate"] = 34;
  2550.         ["RotateP"] = 34;
  2551.         ["RotateV"] = 34;
  2552.         ["RunService"] = 66;
  2553.         ["ScreenGui"] = 47;
  2554.         ["Script"] = 6;
  2555.         ["ScrollingFrame"] = 48;
  2556.         ["Seat"] = 35;
  2557.         ["Selection"] = 55;
  2558.         ["SelectionBox"] = 54;
  2559.         ["SelectionPartLasso"] = 57;
  2560.         ["SelectionPointLasso"] = 57;
  2561.         ["SelectionSphere"] = 54;
  2562.         ["ServerScriptService"] = 0;
  2563.         ["ServerStorage"] = 74;
  2564.         ["Shirt"] = 43;
  2565.         ["ShirtGraphic"] = 40;
  2566.         ["SkateboardPlatform"] = 35;
  2567.         ["Sky"] = 28;
  2568.         ["SlidingBallConstraint"] = 89;
  2569.         ["Smoke"] = 59;
  2570.         ["Snap"] = 34;
  2571.         ["Sound"] = 11;
  2572.         ["SoundService"] = 31;
  2573.         ["Sparkles"] = 42;
  2574.         ["SpawnLocation"] = 25;
  2575.         ["SpecialMesh"] = 8;
  2576.         ["SphereHandleAdornment"] = 54;
  2577.         ["SpotLight"] = 13;
  2578.         ["SpringConstraint"] = 89;
  2579.         ["StarterCharacterScripts"] = 82;
  2580.         ["StarterGear"] = 20;
  2581.         ["StarterGui"] = 46;
  2582.         ["StarterPack"] = 20;
  2583.         ["StarterPlayer"] = 88;
  2584.         ["StarterPlayerScripts"] = 82;
  2585.         ["Status"] = 2;
  2586.         ["StringValue"] = 4;
  2587.         ["SunRaysEffect"] = 90;
  2588.         ["SurfaceGui"] = 64;
  2589.         ["SurfaceLight"] = 13;
  2590.         ["SurfaceSelection"] = 55;
  2591.         ["Team"] = 24;
  2592.         ["Teams"] = 23;
  2593.         ["TeleportService"] = 81;
  2594.         ["Terrain"] = 65;
  2595.         ["TerrainRegion"] = 65;
  2596.         ["TestService"] = 68;
  2597.         ["TextBox"] = 51;
  2598.         ["TextButton"] = 51;
  2599.         ["TextLabel"] = 50;
  2600.         ["Texture"] = 10;
  2601.         ["TextureTrail"] = 4;
  2602.         ["Tool"] = 17;
  2603.         ["TouchTransmitter"] = 37;
  2604.         ["TrussPart"] = 1;
  2605.         ["UnionOperation"] = 77;
  2606.         ["UserInputService"] = 84;
  2607.         ["Vector3Value"] = 4;
  2608.         ["VehicleSeat"] = 35;
  2609.         ["VelocityMotor"] = 34;
  2610.         ["WedgePart"] = 1;
  2611.         ["Weld"] = 34;
  2612.         ["Workspace"] = 19;
  2613. }
  2614.  
  2615. ----------------------------------------------------------------
  2616. ----------------------------------------------------------------
  2617. ----------------------------------------------------------------
  2618. ----------------------------------------------------------------
  2619. ----------------------------------------------------------------
  2620.  
  2621. function Create(ty,data)
  2622.         local obj
  2623.         if type(ty) == 'string' then
  2624.                 obj = Instance.new(ty)
  2625.         else
  2626.                 obj = ty
  2627.         end
  2628.         for k, v in pairs(data) do
  2629.                 if type(k) == 'number' then
  2630.                         v.Parent = obj
  2631.                 else
  2632.                         obj[k] = v
  2633.                 end
  2634.         end
  2635.         return obj
  2636. end
  2637.  
  2638. local barActive = false
  2639. local activeOptions = {}
  2640.  
  2641. function createDDown(dBut, callback,...)
  2642.         if barActive then
  2643.                 for i,v in pairs(activeOptions) do
  2644.                         v:Destroy()
  2645.                 end
  2646.                 activeOptions = {}
  2647.                 barActive = false
  2648.                 return
  2649.         else
  2650.                 barActive = true
  2651.         end
  2652.         local slots = {...}
  2653.         local base = dBut
  2654.         for i,v in pairs(slots) do
  2655.                 local newOption = base:Clone()
  2656.                 newOption.ZIndex = 5
  2657.                 newOption.Name = "Option "..tostring(i)
  2658.                 newOption.Parent = base.Parent.Parent.Parent
  2659.                 newOption.BackgroundTransparency = 0
  2660.                 newOption.ZIndex = 2
  2661.                 table.insert(activeOptions,newOption)
  2662.                 newOption.Position = UDim2.new(-0.4, dBut.Position.X.Offset, dBut.Position.Y.Scale, dBut.Position.Y.Offset + (#activeOptions * dBut.Size.Y.Offset))
  2663.                 newOption.Text = slots[i]
  2664.                 newOption.MouseButton1Down:connect(function()
  2665.                         dBut.Text = slots[i]
  2666.                         callback(slots[i])
  2667.                         for i,v in pairs(activeOptions) do
  2668.                                 v:Destroy()
  2669.                         end
  2670.                         activeOptions = {}
  2671.                         barActive = false
  2672.                 end)
  2673.         end
  2674. end
  2675.  
  2676. -- Connects a function to an event such that it fires asynchronously
  2677. function Connect(event,func)
  2678.         return event:connect(function(...)
  2679.                 local a = {...}
  2680.                 spawn(function() func(unpack(a)) end)
  2681.         end)
  2682. end
  2683.  
  2684. -- returns the ascendant ScreenGui of an object
  2685. function GetScreen(screen)
  2686.         if screen == nil then return nil end
  2687.         while not screen:IsA("ScreenGui") do
  2688.                 screen = screen.Parent
  2689.                 if screen == nil then return nil end
  2690.         end
  2691.         return screen
  2692. end
  2693.  
  2694. do
  2695.         local ZIndexLock = {}
  2696.         -- Sets the ZIndex of an object and its descendants. Objects are locked so
  2697.         -- that SetZIndexOnChanged doesn't spawn multiple threads that set the
  2698.         -- ZIndex of the same object.
  2699.         function SetZIndex(object,z)
  2700.                 if not ZIndexLock[object] then
  2701.                         ZIndexLock[object] = true
  2702.                         if object:IsA'GuiObject' then
  2703.                                 object.ZIndex = z
  2704.                         end
  2705.                         local children = object:GetChildren()
  2706.                         for i = 1,#children do
  2707.                                 SetZIndex(children[i],z)
  2708.                         end
  2709.                         ZIndexLock[object] = nil
  2710.                 end
  2711.         end
  2712.  
  2713.         function SetZIndexOnChanged(object)
  2714.                 return object.Changed:connect(function(p)
  2715.                         if p == "ZIndex" then
  2716.                                 SetZIndex(object,object.ZIndex)
  2717.                         end
  2718.                 end)
  2719.         end
  2720. end
  2721.  
  2722. ---- IconMap ----
  2723. -- Image size: 256px x 256px
  2724. -- Icon size: 16px x 16px
  2725. -- Padding between each icon: 2px
  2726. -- Padding around image edge: 1px
  2727. -- Total icons: 14 x 14 (196)
  2728. local Icon do
  2729.         local iconMap = 'http://www.roblox.com/asset/?id=' .. MAP_ID
  2730.         game:GetService('ContentProvider'):Preload(iconMap)
  2731.         local iconDehash do
  2732.                 -- 14 x 14, 0-based input, 0-based output
  2733.                 local f=math.floor
  2734.                 function iconDehash(h)
  2735.                         return f(h/14%14),f(h%14)
  2736.                 end
  2737.         end
  2738.  
  2739.         function Icon(IconFrame,index)
  2740.                 local row,col = iconDehash(index)
  2741.                 local mapSize = Vector2.new(256,256)
  2742.                 local pad,border = 2,1
  2743.                 local iconSize = 16
  2744.  
  2745.                 local class = 'Frame'
  2746.                 if type(IconFrame) == 'string' then
  2747.                         class = IconFrame
  2748.                         IconFrame = nil
  2749.                 end
  2750.  
  2751.                 if not IconFrame then
  2752.                         IconFrame = Create(class,{
  2753.                                 Name = "Icon";
  2754.                                 BackgroundTransparency = 1;
  2755.                                 ClipsDescendants = true;
  2756.                                 Create('ImageLabel',{
  2757.                                         Name = "IconMap";
  2758.                                         Active = false;
  2759.                                         BackgroundTransparency = 1;
  2760.                                         Image = iconMap;
  2761.                                         Size = UDim2.new(mapSize.x/iconSize,0,mapSize.y/iconSize,0);
  2762.                                 });
  2763.                         })
  2764.                 end
  2765.  
  2766.                 IconFrame.IconMap.Position = UDim2.new(-col - (pad*(col+1) + border)/iconSize,0,-row - (pad*(row+1) + border)/iconSize,0)
  2767.                 return IconFrame
  2768.         end
  2769. end
  2770.  
  2771. ----------------------------------------------------------------
  2772. ----------------------------------------------------------------
  2773. ----------------------------------------------------------------
  2774. ----------------------------------------------------------------
  2775. ---- ScrollBar
  2776. do
  2777.         -- AutoButtonColor doesn't always reset properly
  2778.         local function ResetButtonColor(button)
  2779.                 local active = button.Active
  2780.                 button.Active = not active
  2781.                 button.Active = active
  2782.         end
  2783.  
  2784.         local function ArrowGraphic(size,dir,scaled,template)
  2785.                 local Frame = Create('Frame',{
  2786.                         Name = "Arrow Graphic";
  2787.                         BorderSizePixel = 0;
  2788.                         Size = UDim2.new(0,size,0,size);
  2789.                         Transparency = 1;
  2790.                 })
  2791.                 if not template then
  2792.                         template = Instance.new("Frame")
  2793.                         template.BorderSizePixel = 0
  2794.                 end
  2795.  
  2796.                 local transform
  2797.                 if dir == nil or dir == 'Up' then
  2798.                         function transform(p,s) return p,s end
  2799.                 elseif dir == 'Down' then
  2800.                         function transform(p,s) return UDim2.new(0,p.X.Offset,0,size-p.Y.Offset-1),s end
  2801.                 elseif dir == 'Left' then
  2802.                         function transform(p,s) return UDim2.new(0,p.Y.Offset,0,p.X.Offset),UDim2.new(0,s.Y.Offset,0,s.X.Offset) end
  2803.                 elseif dir == 'Right' then
  2804.                         function transform(p,s) return UDim2.new(0,size-p.Y.Offset-1,0,p.X.Offset),UDim2.new(0,s.Y.Offset,0,s.X.Offset) end
  2805.                 end
  2806.  
  2807.                 local scale
  2808.                 if scaled then
  2809.                         function scale(p,s) return UDim2.new(p.X.Offset/size,0,p.Y.Offset/size,0),UDim2.new(s.X.Offset/size,0,s.Y.Offset/size,0) end
  2810.                 else
  2811.                         function scale(p,s) return p,s end
  2812.                 end
  2813.  
  2814.                 local o = math.floor(size/4)
  2815.                 if size%2 == 0 then
  2816.                         local n = size/2-1
  2817.                         for i = 0,n do
  2818.                                 local t = template:Clone()
  2819.                                 local p,s = scale(transform(
  2820.                                         UDim2.new(0,n-i,0,o+i),
  2821.                                         UDim2.new(0,(i+1)*2,0,1)
  2822.                                 ))
  2823.                                 t.Position = p
  2824.                                 t.Size = s
  2825.                                 t.Parent = Frame
  2826.                         end
  2827.                 else
  2828.                         local n = (size-1)/2
  2829.                         for i = 0,n do
  2830.                                 local t = template:Clone()
  2831.                                 local p,s = scale(transform(
  2832.                                         UDim2.new(0,n-i,0,o+i),
  2833.                                         UDim2.new(0,i*2+1,0,1)
  2834.                                 ))
  2835.                                 t.Position = p
  2836.                                 t.Size = s
  2837.                                 t.Parent = Frame
  2838.                         end
  2839.                 end
  2840.                 if size%4 > 1 then
  2841.                         local t = template:Clone()
  2842.                         local p,s = scale(transform(
  2843.                                 UDim2.new(0,0,0,size-o-1),
  2844.                                 UDim2.new(0,size,0,1)
  2845.                         ))
  2846.                         t.Position = p
  2847.                         t.Size = s
  2848.                         t.Parent = Frame
  2849.                 end
  2850.                 return Frame
  2851.         end
  2852.  
  2853.  
  2854.         local function GripGraphic(size,dir,spacing,scaled,template)
  2855.                 local Frame = Create('Frame',{
  2856.                         Name = "Grip Graphic";
  2857.                         BorderSizePixel = 0;
  2858.                         Size = UDim2.new(0,size.x,0,size.y);
  2859.                         Transparency = 1;
  2860.                 })
  2861.                 if not template then
  2862.                         template = Instance.new("Frame")
  2863.                         template.BorderSizePixel = 0
  2864.                 end
  2865.  
  2866.                 spacing = spacing or 2
  2867.  
  2868.                 local scale
  2869.                 if scaled then
  2870.                         function scale(p) return UDim2.new(p.X.Offset/size.x,0,p.Y.Offset/size.y,0) end
  2871.                 else
  2872.                         function scale(p) return p end
  2873.                 end
  2874.  
  2875.                 if dir == 'Vertical' then
  2876.                         for i=0,size.x-1,spacing do
  2877.                                 local t = template:Clone()
  2878.                                 t.Size = scale(UDim2.new(0,1,0,size.y))
  2879.                                 t.Position = scale(UDim2.new(0,i,0,0))
  2880.                                 t.Parent = Frame
  2881.                         end
  2882.                 elseif dir == nil or dir == 'Horizontal' then
  2883.                         for i=0,size.y-1,spacing do
  2884.                                 local t = template:Clone()
  2885.                                 t.Size = scale(UDim2.new(0,size.x,0,1))
  2886.                                 t.Position = scale(UDim2.new(0,0,0,i))
  2887.                                 t.Parent = Frame
  2888.                         end
  2889.                 end
  2890.  
  2891.                 return Frame
  2892.         end
  2893.  
  2894.         local mt = {
  2895.                 __index = {
  2896.                         GetScrollPercent = function(self)
  2897.                                 return self.ScrollIndex/(self.TotalSpace-self.VisibleSpace)
  2898.                         end;
  2899.                         CanScrollDown = function(self)
  2900.                                 return self.ScrollIndex + self.VisibleSpace < self.TotalSpace
  2901.                         end;
  2902.                         CanScrollUp = function(self)
  2903.                                 return self.ScrollIndex > 0
  2904.                         end;
  2905.                         ScrollDown = function(self)
  2906.                                 self.ScrollIndex = self.ScrollIndex + self.PageIncrement
  2907.                                 self:Update()
  2908.                         end;
  2909.                         ScrollUp = function(self)
  2910.                                 self.ScrollIndex = self.ScrollIndex - self.PageIncrement
  2911.                                 self:Update()
  2912.                         end;
  2913.                         ScrollTo = function(self,index)
  2914.                                 self.ScrollIndex = index
  2915.                                 self:Update()
  2916.                         end;
  2917.                         SetScrollPercent = function(self,percent)
  2918.                                 self.ScrollIndex = math.floor((self.TotalSpace - self.VisibleSpace)*percent + 0.5)
  2919.                                 self:Update()
  2920.                         end;
  2921.                 };
  2922.         }
  2923.         mt.__index.CanScrollRight = mt.__index.CanScrollDown
  2924.         mt.__index.CanScrollLeft = mt.__index.CanScrollUp
  2925.         mt.__index.ScrollLeft = mt.__index.ScrollUp
  2926.         mt.__index.ScrollRight = mt.__index.ScrollDown
  2927.  
  2928.         function ScrollBar(horizontal)
  2929.                 -- create row scroll bar
  2930.                 local ScrollFrame = Create('Frame',{
  2931.                         Name = "ScrollFrame";
  2932.                         Position = horizontal and UDim2.new(0,0,1,-GUI_SIZE) or UDim2.new(1,-GUI_SIZE,0,0);
  2933.                         Size = horizontal and UDim2.new(1,0,0,GUI_SIZE) or UDim2.new(0,GUI_SIZE,1,0);
  2934.                         BackgroundTransparency = 1;
  2935.                         Create('ImageButton',{
  2936.                                 Name = "ScrollDown";
  2937.                                 Position = horizontal and UDim2.new(1,-GUI_SIZE,0,0) or UDim2.new(0,0,1,-GUI_SIZE);
  2938.                                 Size = UDim2.new(0, GUI_SIZE, 0, GUI_SIZE);
  2939.                                 BackgroundColor3 = GuiColor.Button;
  2940.                                 BorderColor3 = GuiColor.Border;
  2941.                                 --BorderSizePixel = 0;
  2942.                         });
  2943.                         Create('ImageButton',{
  2944.                                 Name = "ScrollUp";
  2945.                                 Size = UDim2.new(0, GUI_SIZE, 0, GUI_SIZE);
  2946.                                 BackgroundColor3 = GuiColor.Button;
  2947.                                 BorderColor3 = GuiColor.Border;
  2948.                                 --BorderSizePixel = 0;
  2949.                         });
  2950.                         Create('ImageButton',{
  2951.                                 Name = "ScrollBar";
  2952.                                 Size = horizontal and UDim2.new(1,-GUI_SIZE*2,1,0) or UDim2.new(1,0,1,-GUI_SIZE*2);
  2953.                                 Position = horizontal and UDim2.new(0,GUI_SIZE,0,0) or UDim2.new(0,0,0,GUI_SIZE);
  2954.                                 AutoButtonColor = false;
  2955.                                 BackgroundColor3 = Color3.new(0.94902, 0.94902, 0.94902);
  2956.                                 BorderColor3 = GuiColor.Border;
  2957.                                 --BorderSizePixel = 0;
  2958.                                 Create('ImageButton',{
  2959.                                         Name = "ScrollThumb";
  2960.                                         AutoButtonColor = false;
  2961.                                         Size = UDim2.new(0, GUI_SIZE, 0, GUI_SIZE);
  2962.                                         BackgroundColor3 = GuiColor.Button;
  2963.                                         BorderColor3 = GuiColor.Border;
  2964.                                         --BorderSizePixel = 0;
  2965.                                 });
  2966.                         });
  2967.                 })
  2968.  
  2969.                 local graphicTemplate = Create('Frame',{
  2970.                         Name="Graphic";
  2971.                         BorderSizePixel = 0;
  2972.                         BackgroundColor3 = GuiColor.Border;
  2973.                 })
  2974.                 local graphicSize = GUI_SIZE/2
  2975.  
  2976.                 local ScrollDownFrame = ScrollFrame.ScrollDown
  2977.                         local ScrollDownGraphic = ArrowGraphic(graphicSize,horizontal and 'Right' or 'Down',true,graphicTemplate)
  2978.                         ScrollDownGraphic.Position = UDim2.new(0.5,-graphicSize/2,0.5,-graphicSize/2)
  2979.                         ScrollDownGraphic.Parent = ScrollDownFrame
  2980.                 local ScrollUpFrame = ScrollFrame.ScrollUp
  2981.                         local ScrollUpGraphic = ArrowGraphic(graphicSize,horizontal and 'Left' or 'Up',true,graphicTemplate)
  2982.                         ScrollUpGraphic.Position = UDim2.new(0.5,-graphicSize/2,0.5,-graphicSize/2)
  2983.                         ScrollUpGraphic.Parent = ScrollUpFrame
  2984.                 local ScrollBarFrame = ScrollFrame.ScrollBar
  2985.                 local ScrollThumbFrame = ScrollBarFrame.ScrollThumb
  2986.                 do
  2987.                         local size = GUI_SIZE*3/8
  2988.                         local Decal = GripGraphic(Vector2.new(size,size),horizontal and 'Vertical' or 'Horizontal',2,graphicTemplate)
  2989.                         Decal.Position = UDim2.new(0.5,-size/2,0.5,-size/2)
  2990.                         Decal.Parent = ScrollThumbFrame
  2991.                 end
  2992.  
  2993.                 local Class = setmetatable({
  2994.                         GUI = ScrollFrame;
  2995.                         ScrollIndex = 0;
  2996.                         VisibleSpace = 0;
  2997.                         TotalSpace = 0;
  2998.                         PageIncrement = 1;
  2999.                 },mt)
  3000.  
  3001.                 local UpdateScrollThumb
  3002.                 if horizontal then
  3003.                         function UpdateScrollThumb()
  3004.                                 ScrollThumbFrame.Size = UDim2.new(Class.VisibleSpace/Class.TotalSpace,0,0,GUI_SIZE)
  3005.                                 if ScrollThumbFrame.AbsoluteSize.x < GUI_SIZE then
  3006.                                         ScrollThumbFrame.Size = UDim2.new(0,GUI_SIZE,0,GUI_SIZE)
  3007.                                 end
  3008.                                 local barSize = ScrollBarFrame.AbsoluteSize.x
  3009.                                 ScrollThumbFrame.Position = UDim2.new(Class:GetScrollPercent()*(barSize - ScrollThumbFrame.AbsoluteSize.x)/barSize,0,0,0)
  3010.                         end
  3011.                 else
  3012.                         function UpdateScrollThumb()
  3013.                                 ScrollThumbFrame.Size = UDim2.new(0,GUI_SIZE,Class.VisibleSpace/Class.TotalSpace,0)
  3014.                                 if ScrollThumbFrame.AbsoluteSize.y < GUI_SIZE then
  3015.                                         ScrollThumbFrame.Size = UDim2.new(0,GUI_SIZE,0,GUI_SIZE)
  3016.                                 end
  3017.                                 local barSize = ScrollBarFrame.AbsoluteSize.y
  3018.                                 ScrollThumbFrame.Position = UDim2.new(0,0,Class:GetScrollPercent()*(barSize - ScrollThumbFrame.AbsoluteSize.y)/barSize,0)
  3019.                         end
  3020.                 end
  3021.  
  3022.                 local lastDown
  3023.                 local lastUp
  3024.                 local scrollStyle = {BackgroundColor3=GuiColor.Border,BackgroundTransparency=0}
  3025.                 local scrollStyle_ds = {BackgroundColor3=GuiColor.Border,BackgroundTransparency=0.7}
  3026.  
  3027.                 local function Update()
  3028.                         local t = Class.TotalSpace
  3029.                         local v = Class.VisibleSpace
  3030.                         local s = Class.ScrollIndex
  3031.                         if v <= t then
  3032.                                 if s > 0 then
  3033.                                         if s + v > t then
  3034.                                                 Class.ScrollIndex = t - v
  3035.                                         end
  3036.                                 else
  3037.                                         Class.ScrollIndex = 0
  3038.                                 end
  3039.                         else
  3040.                                 Class.ScrollIndex = 0
  3041.                         end
  3042.  
  3043.                         if Class.UpdateCallback then
  3044.                                 if Class.UpdateCallback(Class) == false then
  3045.                                         return
  3046.                                 end
  3047.                         end
  3048.  
  3049.                         local down = Class:CanScrollDown()
  3050.                         local up = Class:CanScrollUp()
  3051.                         if down ~= lastDown then
  3052.                                 lastDown = down
  3053.                                 ScrollDownFrame.Active = down
  3054.                                 ScrollDownFrame.AutoButtonColor = down
  3055.                                 local children = ScrollDownGraphic:GetChildren()
  3056.                                 local style = down and scrollStyle or scrollStyle_ds
  3057.                                 for i = 1,#children do
  3058.                                         Create(children[i],style)
  3059.                                 end
  3060.                         end
  3061.                         if up ~= lastUp then
  3062.                                 lastUp = up
  3063.                                 ScrollUpFrame.Active = up
  3064.                                 ScrollUpFrame.AutoButtonColor = up
  3065.                                 local children = ScrollUpGraphic:GetChildren()
  3066.                                 local style = up and scrollStyle or scrollStyle_ds
  3067.                                 for i = 1,#children do
  3068.                                         Create(children[i],style)
  3069.                                 end
  3070.                         end
  3071.                         ScrollThumbFrame.Visible = down or up
  3072.                         UpdateScrollThumb()
  3073.                 end
  3074.                 Class.Update = Update
  3075.  
  3076.                 SetZIndexOnChanged(ScrollFrame)
  3077.  
  3078.                 local MouseDrag = Create('ImageButton',{
  3079.                         Name = "MouseDrag";
  3080.                         Position = UDim2.new(-0.25,0,-0.25,0);
  3081.                         Size = UDim2.new(1.5,0,1.5,0);
  3082.                         Transparency = 1;
  3083.                         AutoButtonColor = false;
  3084.                         Active = true;
  3085.                         ZIndex = 10;
  3086.                 })
  3087.  
  3088.                 local scrollEventID = 0
  3089.                 ScrollDownFrame.MouseButton1Down:connect(function()
  3090.                         scrollEventID = tick()
  3091.                         local current = scrollEventID
  3092.                         local up_con
  3093.                         up_con = MouseDrag.MouseButton1Up:connect(function()
  3094.                                 scrollEventID = tick()
  3095.                                 MouseDrag.Parent = nil
  3096.                                 ResetButtonColor(ScrollDownFrame)
  3097.                                 up_con:disconnect(); drag = nil
  3098.                         end)
  3099.                         MouseDrag.Parent = GetScreen(ScrollFrame)
  3100.                         Class:ScrollDown()
  3101.                         wait(0.2) -- delay before auto scroll
  3102.                         while scrollEventID == current do
  3103.                                 Class:ScrollDown()
  3104.                                 if not Class:CanScrollDown() then break end
  3105.                                 wait()
  3106.                         end
  3107.                 end)
  3108.  
  3109.                 ScrollDownFrame.MouseButton1Up:connect(function()
  3110.                         scrollEventID = tick()
  3111.                 end)
  3112.  
  3113.                 ScrollUpFrame.MouseButton1Down:connect(function()
  3114.                         scrollEventID = tick()
  3115.                         local current = scrollEventID
  3116.                         local up_con
  3117.                         up_con = MouseDrag.MouseButton1Up:connect(function()
  3118.                                 scrollEventID = tick()
  3119.                                 MouseDrag.Parent = nil
  3120.                                 ResetButtonColor(ScrollUpFrame)
  3121.                                 up_con:disconnect(); drag = nil
  3122.                         end)
  3123.                         MouseDrag.Parent = GetScreen(ScrollFrame)
  3124.                         Class:ScrollUp()
  3125.                         wait(0.2)
  3126.                         while scrollEventID == current do
  3127.                                 Class:ScrollUp()
  3128.                                 if not Class:CanScrollUp() then break end
  3129.                                 wait()
  3130.                         end
  3131.                 end)
  3132.  
  3133.                 ScrollUpFrame.MouseButton1Up:connect(function()
  3134.                         scrollEventID = tick()
  3135.                 end)
  3136.  
  3137.                 if horizontal then
  3138.                         ScrollBarFrame.MouseButton1Down:connect(function(x,y)
  3139.                                 scrollEventID = tick()
  3140.                                 local current = scrollEventID
  3141.                                 local up_con
  3142.                                 up_con = MouseDrag.MouseButton1Up:connect(function()
  3143.                                         scrollEventID = tick()
  3144.                                         MouseDrag.Parent = nil
  3145.                                         ResetButtonColor(ScrollUpFrame)
  3146.                                         up_con:disconnect(); drag = nil
  3147.                                 end)
  3148.                                 MouseDrag.Parent = GetScreen(ScrollFrame)
  3149.                                 if x > ScrollThumbFrame.AbsolutePosition.x then
  3150.                                         Class:ScrollTo(Class.ScrollIndex + Class.VisibleSpace)
  3151.                                         wait(0.2)
  3152.                                         while scrollEventID == current do
  3153.                                                 if x < ScrollThumbFrame.AbsolutePosition.x + ScrollThumbFrame.AbsoluteSize.x then break end
  3154.                                                 Class:ScrollTo(Class.ScrollIndex + Class.VisibleSpace)
  3155.                                                 wait()
  3156.                                         end
  3157.                                 else
  3158.                                         Class:ScrollTo(Class.ScrollIndex - Class.VisibleSpace)
  3159.                                         wait(0.2)
  3160.                                         while scrollEventID == current do
  3161.                                                 if x > ScrollThumbFrame.AbsolutePosition.x then break end
  3162.                                                 Class:ScrollTo(Class.ScrollIndex - Class.VisibleSpace)
  3163.                                                 wait()
  3164.                                         end
  3165.                                 end
  3166.                         end)
  3167.                 else
  3168.                         ScrollBarFrame.MouseButton1Down:connect(function(x,y)
  3169.                                 scrollEventID = tick()
  3170.                                 local current = scrollEventID
  3171.                                 local up_con
  3172.                                 up_con = MouseDrag.MouseButton1Up:connect(function()
  3173.                                         scrollEventID = tick()
  3174.                                         MouseDrag.Parent = nil
  3175.                                         ResetButtonColor(ScrollUpFrame)
  3176.                                         up_con:disconnect(); drag = nil
  3177.                                 end)
  3178.                                 MouseDrag.Parent = GetScreen(ScrollFrame)
  3179.                                 if y > ScrollThumbFrame.AbsolutePosition.y then
  3180.                                         Class:ScrollTo(Class.ScrollIndex + Class.VisibleSpace)
  3181.                                         wait(0.2)
  3182.                                         while scrollEventID == current do
  3183.                                                 if y < ScrollThumbFrame.AbsolutePosition.y + ScrollThumbFrame.AbsoluteSize.y then break end
  3184.                                                 Class:ScrollTo(Class.ScrollIndex + Class.VisibleSpace)
  3185.                                                 wait()
  3186.                                         end
  3187.                                 else
  3188.                                         Class:ScrollTo(Class.ScrollIndex - Class.VisibleSpace)
  3189.                                         wait(0.2)
  3190.                                         while scrollEventID == current do
  3191.                                                 if y > ScrollThumbFrame.AbsolutePosition.y then break end
  3192.                                                 Class:ScrollTo(Class.ScrollIndex - Class.VisibleSpace)
  3193.                                                 wait()
  3194.                                         end
  3195.                                 end
  3196.                         end)
  3197.                 end
  3198.  
  3199.                 if horizontal then
  3200.                         ScrollThumbFrame.MouseButton1Down:connect(function(x,y)
  3201.                                 scrollEventID = tick()
  3202.                                 local mouse_offset = x - ScrollThumbFrame.AbsolutePosition.x
  3203.                                 local drag_con
  3204.                                 local up_con
  3205.                                 drag_con = MouseDrag.MouseMoved:connect(function(x,y)
  3206.                                         local bar_abs_pos = ScrollBarFrame.AbsolutePosition.x
  3207.                                         local bar_drag = ScrollBarFrame.AbsoluteSize.x - ScrollThumbFrame.AbsoluteSize.x
  3208.                                         local bar_abs_one = bar_abs_pos + bar_drag
  3209.                                         x = x - mouse_offset
  3210.                                         x = x < bar_abs_pos and bar_abs_pos or x > bar_abs_one and bar_abs_one or x
  3211.                                         x = x - bar_abs_pos
  3212.                                         Class:SetScrollPercent(x/(bar_drag))
  3213.                                 end)
  3214.                                 up_con = MouseDrag.MouseButton1Up:connect(function()
  3215.                                         scrollEventID = tick()
  3216.                                         MouseDrag.Parent = nil
  3217.                                         ResetButtonColor(ScrollThumbFrame)
  3218.                                         drag_con:disconnect(); drag_con = nil
  3219.                                         up_con:disconnect(); drag = nil
  3220.                                 end)
  3221.                                 MouseDrag.Parent = GetScreen(ScrollFrame)
  3222.                         end)
  3223.                 else
  3224.                         ScrollThumbFrame.MouseButton1Down:connect(function(x,y)
  3225.                                 scrollEventID = tick()
  3226.                                 local mouse_offset = y - ScrollThumbFrame.AbsolutePosition.y
  3227.                                 local drag_con
  3228.                                 local up_con
  3229.                                 drag_con = MouseDrag.MouseMoved:connect(function(x,y)
  3230.                                         local bar_abs_pos = ScrollBarFrame.AbsolutePosition.y
  3231.                                         local bar_drag = ScrollBarFrame.AbsoluteSize.y - ScrollThumbFrame.AbsoluteSize.y
  3232.                                         local bar_abs_one = bar_abs_pos + bar_drag
  3233.                                         y = y - mouse_offset
  3234.                                         y = y < bar_abs_pos and bar_abs_pos or y > bar_abs_one and bar_abs_one or y
  3235.                                         y = y - bar_abs_pos
  3236.                                         Class:SetScrollPercent(y/(bar_drag))
  3237.                                 end)
  3238.                                 up_con = MouseDrag.MouseButton1Up:connect(function()
  3239.                                         scrollEventID = tick()
  3240.                                         MouseDrag.Parent = nil
  3241.                                         ResetButtonColor(ScrollThumbFrame)
  3242.                                         drag_con:disconnect(); drag_con = nil
  3243.                                         up_con:disconnect(); drag = nil
  3244.                                 end)
  3245.                                 MouseDrag.Parent = GetScreen(ScrollFrame)
  3246.                         end)
  3247.                 end
  3248.  
  3249.                 function Class:Destroy()
  3250.                         ScrollFrame:Destroy()
  3251.                         MouseDrag:Destroy()
  3252.                         for k in pairs(Class) do
  3253.                                 Class[k] = nil
  3254.                         end
  3255.                         setmetatable(Class,nil)
  3256.                 end
  3257.  
  3258.                 Update()
  3259.  
  3260.                 return Class
  3261.         end
  3262. end
  3263.  
  3264. ----------------------------------------------------------------
  3265. ----------------------------------------------------------------
  3266. ----------------------------------------------------------------
  3267. ----------------------------------------------------------------
  3268. ---- Explorer panel
  3269.  
  3270. local explorerPanel = D_E_X.ExplorerPanel
  3271. Create(explorerPanel,{
  3272.         BackgroundColor3 = GuiColor.Field;
  3273.         BorderColor3 = GuiColor.Border;
  3274.         Active = true;
  3275. })
  3276.  
  3277. local SettingsRemote = explorerPanel.Parent:WaitForChild("SettingsPanel"):WaitForChild("GetSetting")
  3278. local GetApiRemote = explorerPanel.Parent:WaitForChild("PropertiesFrame"):WaitForChild("GetApi")
  3279. local GetAwaitRemote = explorerPanel.Parent:WaitForChild("PropertiesFrame"):WaitForChild("GetAwaiting")
  3280. local bindSetAwaiting = explorerPanel.Parent:WaitForChild("PropertiesFrame"):WaitForChild("SetAwaiting")
  3281.  
  3282. local SaveInstanceWindow = explorerPanel.Parent:WaitForChild("SaveInstance")
  3283. local ConfirmationWindow = explorerPanel.Parent:WaitForChild("Confirmation")
  3284. local CautionWindow = explorerPanel.Parent:WaitForChild("Caution")
  3285. local TableCautionWindow = explorerPanel.Parent:WaitForChild("TableCaution")
  3286.  
  3287. local RemoteWindow = explorerPanel.Parent:WaitForChild("CallRemote")
  3288.  
  3289. local ScriptEditor = explorerPanel.Parent:WaitForChild("ScriptEditor")
  3290. local ScriptEditorEvent = ScriptEditor:WaitForChild("OpenScript")
  3291.  
  3292. local CurrentSaveInstanceWindow
  3293. local CurrentRemoteWindow
  3294.  
  3295. local lastSelectedNode
  3296.  
  3297. local DexStorage
  3298. local DexStorageMain
  3299. local DexStorageEnabled
  3300.  
  3301. if saveinstance then DexStorageEnabled = true end
  3302.  
  3303. if DexStorageEnabled then
  3304.         DexStorage = Instance.new("Folder")
  3305.         DexStorage.Name = "Dex"
  3306.         DexStorageMain = Instance.new("Folder",DexStorage)
  3307.         DexStorageMain.Name = "DexStorage"
  3308. end
  3309.  
  3310. local NilStorage
  3311. local NilStorageMain
  3312. local NilStorageEnabled
  3313.  
  3314. if get_nil_instances and IfThisFunctionWasStableEnough then NilStorageEnabled = true end
  3315.  
  3316. if NilStorageEnabled then
  3317.         NilStorage = Instance.new("Folder")
  3318.         NilStorage.Name = "Dex Internal Storage"
  3319.         NilStorageMain = Instance.new("Folder",NilStorage)
  3320.         NilStorageMain.Name = "Nil Instances"
  3321. end
  3322.  
  3323. local listFrame = Create('Frame',{
  3324.         Name = "List";
  3325.         BackgroundTransparency = 1;
  3326.         ClipsDescendants = true;
  3327.         Position = UDim2.new(0,0,0,HEADER_SIZE);
  3328.         Size = UDim2.new(1,-GUI_SIZE,1,-HEADER_SIZE);
  3329.         Parent = explorerPanel;
  3330. })
  3331.  
  3332. local scrollBar = ScrollBar(false)
  3333. scrollBar.PageIncrement = 1
  3334. Create(scrollBar.GUI,{
  3335.         Position = UDim2.new(1,-GUI_SIZE,0,HEADER_SIZE);
  3336.         Size = UDim2.new(0,GUI_SIZE,1,-HEADER_SIZE);
  3337.         Parent = explorerPanel;
  3338. })
  3339.  
  3340. local scrollBarH = ScrollBar(true)
  3341. scrollBarH.PageIncrement = GUI_SIZE
  3342. Create(scrollBarH.GUI,{
  3343.         Position = UDim2.new(0,0,1,-GUI_SIZE);
  3344.         Size = UDim2.new(1,-GUI_SIZE,0,GUI_SIZE);
  3345.         Visible = false;
  3346.         Parent = explorerPanel;
  3347. })
  3348.  
  3349. local headerFrame = Create('Frame',{
  3350.         Name = "Header";
  3351.         BackgroundColor3 = GuiColor.Background;
  3352.         BorderColor3 = GuiColor.Border;
  3353.         Position = UDim2.new(0,0,0,0);
  3354.         Size = UDim2.new(1,0,0,HEADER_SIZE);
  3355.         Parent = explorerPanel;
  3356.         Create('TextLabel',{
  3357.                 Text = "Explorer";
  3358.                 BackgroundTransparency = 1;
  3359.                 TextColor3 = GuiColor.Text;
  3360.                 TextXAlignment = 'Left';
  3361.                 Font = FONT;
  3362.                 FontSize = FONT_SIZE;
  3363.                 Position = UDim2.new(0,4,0,0);
  3364.                 Size = UDim2.new(1,-4,0.5,0);
  3365.         });
  3366. })
  3367.  
  3368. local explorerFilter =  Create('TextBox',{
  3369.         Text = "Filter Workspace";
  3370.         BackgroundTransparency = 0.8;
  3371.         TextColor3 = GuiColor.Text;
  3372.         TextXAlignment = 'Left';
  3373.         Font = FONT;
  3374.         FontSize = FONT_SIZE;
  3375.         Position = UDim2.new(0,4,0.5,0);
  3376.         Size = UDim2.new(1,-8,0.5,-2);
  3377. });
  3378. explorerFilter.Parent = headerFrame
  3379.  
  3380. SetZIndexOnChanged(explorerPanel)
  3381.  
  3382. local function CreateColor3(r, g, b) return Color3.new(r/255,g/255,b/255) end
  3383.  
  3384. local Styles = {
  3385.         Font = Enum.Font.Arial;
  3386.         Margin = 5;
  3387.         Black = CreateColor3(0,0,0);
  3388.         White = CreateColor3(255,255,255);
  3389. }
  3390.  
  3391. local DropDown = {
  3392.         Font = Styles.Font;
  3393.         FontSize = Enum.FontSize.Size14;
  3394.         TextColor = CreateColor3(0,0,0);
  3395.         TextColorOver = Styles.White;
  3396.         TextXAlignment = Enum.TextXAlignment.Left;
  3397.         Height = 20;
  3398.         BackColor = Styles.White;
  3399.         BackColorOver = CreateColor3(86,125,188);
  3400.         BorderColor = CreateColor3(216,216,216);
  3401.         BorderSizePixel = 2;
  3402.         ArrowColor = CreateColor3(160,160,160);
  3403.         ArrowColorOver = Styles.Black;
  3404. }
  3405.  
  3406. local Row = {
  3407.         Font = Styles.Font;
  3408.         FontSize = Enum.FontSize.Size14;
  3409.         TextXAlignment = Enum.TextXAlignment.Left;
  3410.         TextColor = Styles.Black;
  3411.         TextColorOver = Styles.White;
  3412.         TextLockedColor = CreateColor3(120,120,120);
  3413.         Height = 24;
  3414.         BorderColor = CreateColor3(216,216,216);
  3415.         BackgroundColor = Styles.White;
  3416.         BackgroundColorAlternate = CreateColor3(246,246,246);
  3417.         BackgroundColorMouseover = CreateColor3(211,224,244);
  3418.         TitleMarginLeft = 15;
  3419. }
  3420.  
  3421. local currentRightClickMenu
  3422. local CurrentInsertObjectWindow
  3423. local CurrentFunctionCallerWindow
  3424.  
  3425. local RbxApi
  3426.  
  3427. function ClassCanCreate(IName)
  3428.         local success,err = pcall(function() Instance.new(IName) end)
  3429.         if err then
  3430.                 return false
  3431.         else
  3432.                 return true
  3433.         end
  3434. end
  3435.  
  3436. function GetClasses()
  3437.         if RbxApi == nil then return {} end
  3438.         local classTable = {}
  3439.         for i,v in pairs(RbxApi.Classes) do
  3440.                 if ClassCanCreate(v.Name) then
  3441.                         table.insert(classTable,v.Name)
  3442.                 end
  3443.         end
  3444.         return classTable
  3445. end
  3446.  
  3447. local function sortAlphabetic(t, property)
  3448.         table.sort(t,
  3449.                 function(x,y) return x[property] < y[property]
  3450.         end)
  3451. end
  3452.  
  3453. local function FunctionIsHidden(functionData)
  3454.         local tags = functionData["tags"]
  3455.         for _,name in pairs(tags) do
  3456.                 if name == "deprecated"
  3457.                         or name == "hidden"
  3458.                         or name == "writeonly" then
  3459.                         return true
  3460.                 end
  3461.         end
  3462.         return false
  3463. end
  3464.  
  3465. local function GetAllFunctions(className)
  3466.         local class = RbxApi.Classes[className]
  3467.         local functions = {}
  3468.        
  3469.         if not class then return functions end
  3470.        
  3471.         while class do
  3472.                 if class.Name == "Instance" then break end
  3473.                 for _,nextFunction in pairs(class.Functions) do
  3474.                         if not FunctionIsHidden(nextFunction) then
  3475.                                 table.insert(functions, nextFunction)
  3476.                         end
  3477.                 end
  3478.                 class = RbxApi.Classes[class.Superclass]
  3479.         end
  3480.        
  3481.         sortAlphabetic(functions, "Name")
  3482.  
  3483.         return functions
  3484. end
  3485.  
  3486. function GetFunctions()
  3487.         if RbxApi == nil then return {} end
  3488.         local List = SelectionVar():Get()
  3489.        
  3490.         if #List == 0 then return end
  3491.        
  3492.         local MyObject = List[1]
  3493.        
  3494.         local functionTable = {}
  3495.         for i,v in pairs(GetAllFunctions(MyObject.ClassName)) do
  3496.                 table.insert(functionTable,v)
  3497.         end
  3498.         return functionTable
  3499. end
  3500.  
  3501. function CreateInsertObjectMenu(choices, currentChoice, readOnly, onClick)
  3502.         local mouse = game.Players.LocalPlayer:GetMouse()
  3503.         local totalSize = explorerPanel.Parent.AbsoluteSize.y
  3504.         if #choices == 0 then return end
  3505.        
  3506.         table.sort(choices, function(a,b) return a < b end)
  3507.  
  3508.         local frame = Instance.new("Frame")     
  3509.         frame.Name = "InsertObject"
  3510.         frame.Size = UDim2.new(0, 200, 1, 0)
  3511.         frame.BackgroundTransparency = 1
  3512.         frame.Active = true
  3513.        
  3514.         local menu = nil
  3515.         local arrow = nil
  3516.         local expanded = false
  3517.         local margin = DropDown.BorderSizePixel;
  3518.        
  3519.         --[[
  3520.         local button = Instance.new("TextButton")
  3521.         button.Font = Row.Font
  3522.         button.FontSize = Row.FontSize
  3523.         button.TextXAlignment = Row.TextXAlignment
  3524.         button.BackgroundTransparency = 1
  3525.         button.TextColor3 = Row.TextColor
  3526.         if readOnly then
  3527.                 button.TextColor3 = Row.TextLockedColor
  3528.         end
  3529.         button.Text = currentChoice
  3530.         button.Size = UDim2.new(1, -2 * Styles.Margin, 1, 0)
  3531.         button.Position = UDim2.new(0, Styles.Margin, 0, 0)
  3532.         button.Parent = frame
  3533.         --]]
  3534.        
  3535.         local function hideMenu()
  3536.                 expanded = false
  3537.                 --showArrow(DropDown.ArrowColor)
  3538.                 if frame then
  3539.                         --frame:Destroy()
  3540.                         CurrentInsertObjectWindow.Visible = false
  3541.                 end
  3542.         end
  3543.        
  3544.         local function showMenu()
  3545.                 expanded = true
  3546.                 menu = Instance.new("ScrollingFrame")
  3547.                 menu.Size = UDim2.new(0,200,1,0)
  3548.                 menu.CanvasSize = UDim2.new(0, 200, 0, #choices * DropDown.Height)
  3549.                 menu.Position = UDim2.new(0, margin, 0, 0)
  3550.                 menu.BackgroundTransparency = 0
  3551.                 menu.BackgroundColor3 = DropDown.BackColor
  3552.                 menu.BorderColor3 = DropDown.BorderColor
  3553.                 menu.BorderSizePixel = DropDown.BorderSizePixel
  3554.                 menu.TopImage = "rbxasset://textures/blackBkg_square.png"
  3555.                 menu.MidImage = "rbxasset://textures/blackBkg_square.png"
  3556.                 menu.BottomImage = "rbxasset://textures/blackBkg_square.png"
  3557.                 menu.Active = true
  3558.                 menu.ZIndex = 5
  3559.                 menu.Parent = frame
  3560.                
  3561.                 --local parentFrameHeight = script.Parent.List.Size.Y.Offset
  3562.                 --local rowHeight = mouse.Y
  3563.                 --if (rowHeight + menu.Size.Y.Offset) > parentFrameHeight then
  3564.                 --      menu.Position = UDim2.new(0, margin, 0, -1 * (#choices * DropDown.Height) - margin)
  3565.                 --end
  3566.                        
  3567.                 local function choice(name)
  3568.                         onClick(name)
  3569.                         hideMenu()
  3570.                 end
  3571.                
  3572.                 for i,name in pairs(choices) do
  3573.                         local option = CreateRightClickMenuItem(name, function()
  3574.                                 choice(name)
  3575.                         end,1)
  3576.                         option.Size = UDim2.new(1, 0, 0, 20)
  3577.                         option.Position = UDim2.new(0, 0, 0, (i - 1) * DropDown.Height)
  3578.                         option.ZIndex = menu.ZIndex
  3579.                         option.Parent = menu
  3580.                 end
  3581.         end
  3582.  
  3583.  
  3584.         showMenu()
  3585.  
  3586.        
  3587.         return frame
  3588. end
  3589.  
  3590. function CreateFunctionCallerMenu(choices, currentChoice, readOnly, onClick)
  3591.         local mouse = game.Players.LocalPlayer:GetMouse()
  3592.         local totalSize = explorerPanel.Parent.AbsoluteSize.y
  3593.         if #choices == 0 then return end
  3594.        
  3595.         table.sort(choices, function(a,b) return a.Name < b.Name end)
  3596.  
  3597.         local frame = Instance.new("Frame")     
  3598.         frame.Name = "InsertObject"
  3599.         frame.Size = UDim2.new(0, 200, 1, 0)
  3600.         frame.BackgroundTransparency = 1
  3601.         frame.Active = true
  3602.        
  3603.         local menu = nil
  3604.         local arrow = nil
  3605.         local expanded = false
  3606.         local margin = DropDown.BorderSizePixel;
  3607.        
  3608.         local function hideMenu()
  3609.                 expanded = false
  3610.                 --showArrow(DropDown.ArrowColor)
  3611.                 if frame then
  3612.                         --frame:Destroy()
  3613.                         CurrentInsertObjectWindow.Visible = false
  3614.                 end
  3615.         end
  3616.        
  3617.         local function showMenu()
  3618.                 expanded = true
  3619.                 menu = Instance.new("ScrollingFrame")
  3620.                 menu.Size = UDim2.new(0,300,1,0)
  3621.                 menu.CanvasSize = UDim2.new(0, 300, 0, #choices * DropDown.Height)
  3622.                 menu.Position = UDim2.new(0, margin, 0, 0)
  3623.                 menu.BackgroundTransparency = 0
  3624.                 menu.BackgroundColor3 = DropDown.BackColor
  3625.                 menu.BorderColor3 = DropDown.BorderColor
  3626.                 menu.BorderSizePixel = DropDown.BorderSizePixel
  3627.                 menu.TopImage = "rbxasset://textures/blackBkg_square.png"
  3628.                 menu.MidImage = "rbxasset://textures/blackBkg_square.png"
  3629.                 menu.BottomImage = "rbxasset://textures/blackBkg_square.png"
  3630.                 menu.Active = true
  3631.                 menu.ZIndex = 5
  3632.                 menu.Parent = frame
  3633.                
  3634.                 --local parentFrameHeight = script.Parent.List.Size.Y.Offset
  3635.                 --local rowHeight = mouse.Y
  3636.                 --if (rowHeight + menu.Size.Y.Offset) > parentFrameHeight then
  3637.                 --      menu.Position = UDim2.new(0, margin, 0, -1 * (#choices * DropDown.Height) - margin)
  3638.                 --end
  3639.                
  3640.                 local function GetParameters(functionData)
  3641.                         local paraString = ""
  3642.                         paraString = paraString.."("
  3643.                         for i,v in pairs(functionData.Arguments) do
  3644.                                 paraString = paraString..v.Type.." "..v.Name
  3645.                                 if i < #functionData.Arguments then
  3646.                                         paraString = paraString..", "
  3647.                                 end
  3648.                         end
  3649.                         paraString = paraString..")"
  3650.                         return paraString
  3651.                 end
  3652.                        
  3653.                 local function choice(name)
  3654.                         onClick(name)
  3655.                         hideMenu()
  3656.                 end
  3657.                
  3658.                 for i,name in pairs(choices) do
  3659.                         local option = CreateRightClickMenuItem(name.ReturnType.." "..name.Name..GetParameters(name), function()
  3660.                                 choice(name)
  3661.                         end,2)
  3662.                         option.Size = UDim2.new(1, 0, 0, 20)
  3663.                         option.Position = UDim2.new(0, 0, 0, (i - 1) * DropDown.Height)
  3664.                         option.ZIndex = menu.ZIndex
  3665.                         option.Parent = menu
  3666.                 end
  3667.         end
  3668.  
  3669.  
  3670.         showMenu()
  3671.  
  3672.        
  3673.         return frame
  3674. end
  3675.  
  3676. function CreateInsertObject()
  3677.         if not CurrentInsertObjectWindow then return end
  3678.         CurrentInsertObjectWindow.Visible = true
  3679.         if currentRightClickMenu and CurrentInsertObjectWindow.Visible then
  3680.                 CurrentInsertObjectWindow.Position = UDim2.new(0,currentRightClickMenu.Position.X.Offset-currentRightClickMenu.Size.X.Offset-2,0,0)
  3681.         end
  3682.         if CurrentInsertObjectWindow.Visible then
  3683.                 CurrentInsertObjectWindow.Parent = explorerPanel.Parent
  3684.         end
  3685. end
  3686.  
  3687. function CreateFunctionCaller()
  3688.         if CurrentFunctionCallerWindow then
  3689.                 CurrentFunctionCallerWindow:Destroy()
  3690.                 CurrentFunctionCallerWindow = nil
  3691.         end
  3692.         CurrentFunctionCallerWindow = CreateFunctionCallerMenu(
  3693.                 GetFunctions(),
  3694.                 "",
  3695.                 false,
  3696.                 function(option)
  3697.                         CurrentFunctionCallerWindow:Destroy()
  3698.                         CurrentFunctionCallerWindow = nil
  3699.                         local list = SelectionVar():Get()
  3700.                         for i = 1,#list do
  3701.                                 pcall(function() Instance.new(option,list[i]) end)
  3702.                         end
  3703.                         print(option.Name .. " selected to be called. Function caller being added soon, please wait!")
  3704.                         --CallFunction()
  3705.                         DestroyRightClick()
  3706.                 end
  3707.         )
  3708.         if currentRightClickMenu and CurrentFunctionCallerWindow then
  3709.                 CurrentFunctionCallerWindow.Position = UDim2.new(0,currentRightClickMenu.Position.X.Offset-currentRightClickMenu.Size.X.Offset*1.5-2,0,0)
  3710.         end
  3711.         if CurrentFunctionCallerWindow then
  3712.                 CurrentFunctionCallerWindow.Parent = explorerPanel.Parent
  3713.         end
  3714. end
  3715.  
  3716. function CreateRightClickMenuItem(text, onClick, insObj)
  3717.         local button = Instance.new("TextButton")
  3718.         button.Font = DropDown.Font
  3719.         button.FontSize = DropDown.FontSize
  3720.         button.TextColor3 = DropDown.TextColor
  3721.         button.TextXAlignment = DropDown.TextXAlignment
  3722.         button.BackgroundColor3 = DropDown.BackColor
  3723.         button.AutoButtonColor = false
  3724.         button.BorderSizePixel = 0
  3725.         button.Active = true
  3726.         button.Text = text
  3727.        
  3728.         if insObj == 1 then
  3729.                 local newIcon = Icon(nil,ExplorerIndex[text] or 0)
  3730.                 newIcon.Position = UDim2.new(0,0,0,2)
  3731.                 newIcon.Size = UDim2.new(0,16,0,16)
  3732.                 newIcon.IconMap.ZIndex = 5
  3733.                 newIcon.Parent = button
  3734.                 button.Text = "tt"..button.Text
  3735.         elseif insObj == 2 then
  3736.                 button.FontSize = Enum.FontSize.Size11
  3737.         end
  3738.        
  3739.         button.MouseEnter:connect(function()
  3740.                 button.TextColor3 = DropDown.TextColorOver
  3741.                 button.BackgroundColor3 = DropDown.BackColorOver
  3742.                 if not insObj and CurrentInsertObjectWindow then
  3743.                         if CurrentInsertObjectWindow.Visible == false and button.Text == "Insert Object" then
  3744.                                 CreateInsertObject()
  3745.                         elseif CurrentInsertObjectWindow.Visible and button.Text ~= "Insert Object" then
  3746.                                 CurrentInsertObjectWindow.Visible = false
  3747.                         end
  3748.                 end
  3749.                 if not insObj then
  3750.                         if CurrentFunctionCallerWindow and button.Text ~= "Call Function" then
  3751.                                 CurrentFunctionCallerWindow:Destroy()
  3752.                                 CurrentFunctionCallerWindow = nil
  3753.                         elseif button.Text == "Call Function" then
  3754.                                 CreateFunctionCaller()
  3755.                         end
  3756.                 end
  3757.         end)
  3758.         button.MouseLeave:connect(function()
  3759.                 button.TextColor3 = DropDown.TextColor
  3760.                 button.BackgroundColor3 = DropDown.BackColor
  3761.         end)
  3762.         button.MouseButton1Click:connect(function()
  3763.                 button.TextColor3 = DropDown.TextColor
  3764.                 button.BackgroundColor3 = DropDown.BackColor
  3765.                 onClick(text)
  3766.         end)   
  3767.         return button
  3768. end
  3769.  
  3770. function CreateRightClickMenu(choices, currentChoice, readOnly, onClick)
  3771.         local mouse = game.Players.LocalPlayer:GetMouse()
  3772.  
  3773.         local frame = Instance.new("Frame")     
  3774.         frame.Name = "DropDown"
  3775.         frame.Size = UDim2.new(0, 200, 1, 0)
  3776.         frame.BackgroundTransparency = 1
  3777.         frame.Active = true
  3778.        
  3779.         local menu = nil
  3780.         local arrow = nil
  3781.         local expanded = false
  3782.         local margin = DropDown.BorderSizePixel;
  3783.        
  3784.         --[[
  3785.         local button = Instance.new("TextButton")
  3786.         button.Font = Row.Font
  3787.         button.FontSize = Row.FontSize
  3788.         button.TextXAlignment = Row.TextXAlignment
  3789.         button.BackgroundTransparency = 1
  3790.         button.TextColor3 = Row.TextColor
  3791.         if readOnly then
  3792.                 button.TextColor3 = Row.TextLockedColor
  3793.         end
  3794.         button.Text = currentChoice
  3795.         button.Size = UDim2.new(1, -2 * Styles.Margin, 1, 0)
  3796.         button.Position = UDim2.new(0, Styles.Margin, 0, 0)
  3797.         button.Parent = frame
  3798.         --]]
  3799.        
  3800.         local function hideMenu()
  3801.                 expanded = false
  3802.                 --showArrow(DropDown.ArrowColor)
  3803.                 if frame then
  3804.                         frame:Destroy()
  3805.                         DestroyRightClick()
  3806.                 end
  3807.         end
  3808.        
  3809.         local function showMenu()
  3810.                 expanded = true
  3811.                 menu = Instance.new("Frame")
  3812.                 menu.Size = UDim2.new(0, 200, 0, #choices * DropDown.Height)
  3813.                 menu.Position = UDim2.new(0, margin, 0, 5)
  3814.                 menu.BackgroundTransparency = 0
  3815.                 menu.BackgroundColor3 = DropDown.BackColor
  3816.                 menu.BorderColor3 = DropDown.BorderColor
  3817.                 menu.BorderSizePixel = DropDown.BorderSizePixel
  3818.                 menu.Active = true
  3819.                 menu.ZIndex = 5
  3820.                 menu.Parent = frame
  3821.                
  3822.                 --local parentFrameHeight = script.Parent.List.Size.Y.Offset
  3823.                 --local rowHeight = mouse.Y
  3824.                 --if (rowHeight + menu.Size.Y.Offset) > parentFrameHeight then
  3825.                 --      menu.Position = UDim2.new(0, margin, 0, -1 * (#choices * DropDown.Height) - margin)
  3826.                 --end
  3827.                        
  3828.                 local function choice(name)
  3829.                         onClick(name)
  3830.                         hideMenu()
  3831.                 end
  3832.                
  3833.                 for i,name in pairs(choices) do
  3834.                         local option = CreateRightClickMenuItem(name, function()
  3835.                                 choice(name)
  3836.                         end)
  3837.                         option.Size = UDim2.new(1, 0, 0, 20)
  3838.                         option.Position = UDim2.new(0, 0, 0, (i - 1) * DropDown.Height)
  3839.                         option.ZIndex = menu.ZIndex
  3840.                         option.Parent = menu
  3841.                 end
  3842.         end
  3843.  
  3844.  
  3845.         showMenu()
  3846.  
  3847.        
  3848.         return frame
  3849. end
  3850.  
  3851. function checkMouseInGui(gui)
  3852.         if gui == nil then return false end
  3853.         local plrMouse = game.Players.LocalPlayer:GetMouse()
  3854.         local guiPosition = gui.AbsolutePosition
  3855.         local guiSize = gui.AbsoluteSize       
  3856.        
  3857.         if plrMouse.X >= guiPosition.x and plrMouse.X <= guiPosition.x + guiSize.x and plrMouse.Y >= guiPosition.y and plrMouse.Y <= guiPosition.y + guiSize.y then
  3858.                 return true
  3859.         else
  3860.                 return false
  3861.         end
  3862. end
  3863.  
  3864. local clipboard = {}
  3865. local function delete(o)
  3866.         o.Parent = nil
  3867. end
  3868.  
  3869. local getTextWidth do
  3870.         local text = Create('TextLabel',{
  3871.                 Name = "TextWidth";
  3872.                 TextXAlignment = 'Left';
  3873.                 TextYAlignment = 'Center';
  3874.                 Font = FONT;
  3875.                 FontSize = FONT_SIZE;
  3876.                 Text = "";
  3877.                 Position = UDim2.new(0,0,0,0);
  3878.                 Size = UDim2.new(1,0,1,0);
  3879.                 Visible = false;
  3880.                 Parent = explorerPanel;
  3881.         })
  3882.         function getTextWidth(s)
  3883.                 text.Text = s
  3884.                 return text.TextBounds.x
  3885.         end
  3886. end
  3887.  
  3888. local nameScanned = false
  3889. -- Holds the game tree converted to a list.
  3890. local TreeList = {}
  3891. -- Matches objects to their tree node representation.
  3892. local NodeLookup = {}
  3893.  
  3894. local nodeWidth = 0
  3895.  
  3896. local QuickButtons = {}
  3897.  
  3898. function filteringWorkspace()
  3899.         if explorerFilter.Text ~= "" and explorerFilter.Text ~= "Filter Workspace" then
  3900.                 return true
  3901.         end
  3902.         return false
  3903. end
  3904.  
  3905. function lookForAName(obj,name)
  3906.         for i,v in pairs(obj:GetChildren()) do
  3907.                 if string.find(string.lower(v.Name),string.lower(name)) then nameScanned = true end
  3908.                 lookForAName(v,name)
  3909.         end
  3910. end
  3911.  
  3912. function scanName(obj)
  3913.         nameScanned = false
  3914.         if string.find(string.lower(obj.Name),string.lower(explorerFilter.Text)) then
  3915.                 nameScanned = true
  3916.         else
  3917.                 lookForAName(obj,explorerFilter.Text)
  3918.         end
  3919.         return nameScanned
  3920. end
  3921.  
  3922. function updateActions()
  3923.         for i,v in pairs(QuickButtons) do
  3924.                 if v.Cond() then
  3925.                         v.Toggle(true)
  3926.                 else
  3927.                         v.Toggle(false)
  3928.                 end
  3929.         end
  3930. end
  3931.  
  3932. local updateList,rawUpdateList,updateScroll,rawUpdateSize do
  3933.         local function r(t)
  3934.                 for i = 1,#t do
  3935.                         if not filteringWorkspace() or scanName(t[i].Object) then
  3936.                                 TreeList[#TreeList+1] = t[i]
  3937.  
  3938.                                 local w = (t[i].Depth)*(2+ENTRY_PADDING+GUI_SIZE) + 2 + ENTRY_SIZE + 4 + getTextWidth(t[i].Object.Name) + 4
  3939.                                 if w > nodeWidth then
  3940.                                         nodeWidth = w
  3941.                                 end
  3942.                                 if t[i].Expanded or filteringWorkspace() then
  3943.                                         r(t[i])
  3944.                                 end
  3945.                         end
  3946.                 end
  3947.         end
  3948.  
  3949.         function rawUpdateSize()
  3950.                 scrollBarH.TotalSpace = nodeWidth
  3951.                 scrollBarH.VisibleSpace = listFrame.AbsoluteSize.x
  3952.                 scrollBarH:Update()
  3953.                 local visible = scrollBarH:CanScrollDown() or scrollBarH:CanScrollUp()
  3954.                 scrollBarH.GUI.Visible = visible
  3955.  
  3956.                 listFrame.Size = UDim2.new(1,-GUI_SIZE,1,-GUI_SIZE*(visible and 1 or 0) - HEADER_SIZE)
  3957.  
  3958.                 scrollBar.VisibleSpace = math.ceil(listFrame.AbsoluteSize.y/ENTRY_BOUND)
  3959.                 scrollBar.GUI.Size = UDim2.new(0,GUI_SIZE,1,-GUI_SIZE*(visible and 1 or 0) - HEADER_SIZE)
  3960.                
  3961.                 scrollBar.TotalSpace = #TreeList+1
  3962.                 scrollBar:Update()
  3963.         end
  3964.  
  3965.         function rawUpdateList()
  3966.                 -- Clear then repopulate the entire list. It appears to be fast enough.
  3967.                 TreeList = {}
  3968.                 nodeWidth = 0
  3969.                 r(NodeLookup[workspace.Parent])
  3970.                 if DexStorageEnabled then
  3971.                         r(NodeLookup[DexStorage])
  3972.                 end
  3973.                 if NilStorageEnabled then
  3974.                         r(NodeLookup[NilStorage])
  3975.                 end
  3976.                 rawUpdateSize()
  3977.                 updateActions()
  3978.         end
  3979.  
  3980.         -- Adding or removing large models will cause many updates to occur. We
  3981.         -- can reduce the number of updates by creating a delay, then dropping any
  3982.         -- updates that occur during the delay.
  3983.         local updatingList = false
  3984.         function updateList()
  3985.                 if updatingList then return end
  3986.                 updatingList = true
  3987.                 wait(0.25)
  3988.                 updatingList = false
  3989.                 rawUpdateList()
  3990.         end
  3991.  
  3992.         local updatingScroll = false
  3993.         function updateScroll()
  3994.                 if updatingScroll then return end
  3995.                 updatingScroll = true
  3996.                 wait(0.25)
  3997.                 updatingScroll = false
  3998.                 scrollBar:Update()
  3999.         end
  4000. end
  4001.  
  4002. local Selection do
  4003.         local bindGetSelection = explorerPanel:FindFirstChild("GetSelection")
  4004.         if not bindGetSelection then
  4005.                 bindGetSelection = Create('BindableFunction',{Name = "GetSelection"})
  4006.                 bindGetSelection.Parent = explorerPanel
  4007.         end
  4008.  
  4009.         local bindSetSelection = explorerPanel:FindFirstChild("SetSelection")
  4010.         if not bindSetSelection then
  4011.                 bindSetSelection = Create('BindableFunction',{Name = "SetSelection"})
  4012.                 bindSetSelection.Parent = explorerPanel
  4013.         end
  4014.  
  4015.         local bindSelectionChanged = explorerPanel:FindFirstChild("SelectionChanged")
  4016.         if not bindSelectionChanged then
  4017.                 bindSelectionChanged = Create('BindableEvent',{Name = "SelectionChanged"})
  4018.                 bindSelectionChanged.Parent = explorerPanel
  4019.         end
  4020.  
  4021.         local SelectionList = {}
  4022.         local SelectionSet = {}
  4023.         local Updates = true
  4024.         Selection = {
  4025.                 Selected = SelectionSet;
  4026.                 List = SelectionList;
  4027.         }
  4028.  
  4029.         local function addObject(object)
  4030.                 -- list update
  4031.                 local lupdate = false
  4032.                 -- scroll update
  4033.                 local supdate = false
  4034.  
  4035.                 if not SelectionSet[object] then
  4036.                         local node = NodeLookup[object]
  4037.                         if node then
  4038.                                 table.insert(SelectionList,object)
  4039.                                 SelectionSet[object] = true
  4040.                                 node.Selected = true
  4041.  
  4042.                                 -- expand all ancestors so that selected node becomes visible
  4043.                                 node = node.Parent
  4044.                                 while node do
  4045.                                         if not node.Expanded then
  4046.                                                 node.Expanded = true
  4047.                                                 lupdate = true
  4048.                                         end
  4049.                                         node = node.Parent
  4050.                                 end
  4051.                                 supdate = true
  4052.                         end
  4053.                 end
  4054.                 return lupdate,supdate
  4055.         end
  4056.  
  4057.         function Selection:Set(objects)
  4058.                 local lupdate = false
  4059.                 local supdate = false
  4060.  
  4061.                 if #SelectionList > 0 then
  4062.                         for i = 1,#SelectionList do
  4063.                                 local object = SelectionList[i]
  4064.                                 local node = NodeLookup[object]
  4065.                                 if node then
  4066.                                         node.Selected = false
  4067.                                         SelectionSet[object] = nil
  4068.                                 end
  4069.                         end
  4070.  
  4071.                         SelectionList = {}
  4072.                         Selection.List = SelectionList
  4073.                         supdate = true
  4074.                 end
  4075.  
  4076.                 for i = 1,#objects do
  4077.                         local l,s = addObject(objects[i])
  4078.                         lupdate = l or lupdate
  4079.                         supdate = s or supdate
  4080.                 end
  4081.  
  4082.                 if lupdate then
  4083.                         rawUpdateList()
  4084.                         supdate = true
  4085.                 elseif supdate then
  4086.                         scrollBar:Update()
  4087.                 end
  4088.  
  4089.                 if supdate then
  4090.                         bindSelectionChanged:Fire()
  4091.                         updateActions()
  4092.                 end
  4093.         end
  4094.  
  4095.         function Selection:Add(object)
  4096.                 local l,s = addObject(object)
  4097.                 if l then
  4098.                         rawUpdateList()
  4099.                         if Updates then
  4100.                                 bindSelectionChanged:Fire()
  4101.                                 updateActions()
  4102.                         end
  4103.                 elseif s then
  4104.                         scrollBar:Update()
  4105.                         if Updates then
  4106.                                 bindSelectionChanged:Fire()
  4107.                                 updateActions()
  4108.                         end
  4109.                 end
  4110.         end
  4111.        
  4112.         function Selection:StopUpdates()
  4113.                 Updates = false
  4114.         end
  4115.        
  4116.         function Selection:ResumeUpdates()
  4117.                 Updates = true
  4118.                 bindSelectionChanged:Fire()
  4119.                 updateActions()
  4120.         end