SaveText.Ru

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