Advertisement
Team_Alex

Untitled

Mar 20th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.22 KB | None | 0 0
  1. backgroundtrans
  2. work.TextColor3 = fontcolor
  3. work.BorderColor3 = bordercolor
  4. work.BackgroundColor3 = backgroundcolor
  5. work.Text = "Workspace"
  6. work.MouseButton1Click:connect(function()
  7. current = Workspace
  8. Clear()
  9. GetList()
  10. end)
  11. work.MouseButton2Up:connect(function(x,y)
  12. local pos = UDim2.new(0,x,0,y)
  13. CreatePasteMenu(pos, Workspace)
  14. end)
  15.  
  16. local light = Instance.new("TextButton", sg)
  17. light.Position = UDim2.new(0.06,0,.2,0)
  18. light.Size = UDim2.new(.05,0,.05,0)
  19. light.BackgroundTransparency = backgroundtrans
  20. light.TextColor3 = fontcolor
  21. light.BorderColor3 = bordercolor
  22. light.BackgroundColor3 = backgroundcolor
  23. light.Text = "Lighting"
  24. light.MouseButton1Click:connect(function()
  25. current = game.Lighting
  26. Clear()
  27. GetList()
  28. end)
  29. light.MouseButton2Up:connect(function(x,y)
  30. local pos = UDim2.new(0,x,0,y)
  31. CreatePasteMenu(pos, game.Lighting)
  32. end)
  33.  
  34. local players = Instance.new("TextButton", sg)
  35. players.Position = UDim2.new(0.12,0,.2,0)
  36. players.Size = UDim2.new(.05,0,.05,0)
  37. players.BackgroundTransparency = backgroundtrans
  38. players.TextColor3 = fontcolor
  39. players.BorderColor3 = bordercolor
  40. players.BackgroundColor3 = backgroundcolor
  41. players.Text = "Players"
  42. players.MouseButton1Click:connect(function()
  43. current = game.Players
  44. Clear()
  45. GetList()
  46. end)
  47. players.MouseButton2Up:connect(function(x,y)
  48. local pos = UDim2.new(0,x,0,y)
  49. CreatePasteMenu(pos, game.Players)
  50. end)
  51.  
  52. local starterp = Instance.new("TextButton", sg)
  53. starterp.Position = UDim2.new(0.18,0,.2,0)
  54. starterp.Size = UDim2.new(.05,0,.05,0)
  55. starterp.BackgroundTransparency = backgroundtrans
  56. starterp.TextColor3 = fontcolor
  57. starterp.BorderColor3 = bordercolor
  58. starterp.BackgroundColor3 = backgroundcolor
  59. starterp.Text = "StarterPack"
  60. starterp.MouseButton1Click:connect(function()
  61. current = game.StarterPack
  62. Clear()
  63. GetList()
  64. end)
  65. starterp.MouseButton2Up:connect(function(x,y)
  66. local pos = UDim2.new(0,x,0,y)
  67. CreatePasteMenu(pos, game.StarterPack)
  68. end)
  69.  
  70. local starterg = Instance.new("TextButton", sg)
  71. starterg.Position = UDim2.new(0.24,0,.2,0)
  72. starterg.Size = UDim2.new(.05,0,.05,0)
  73. starterg.BackgroundTransparency = backgroundtrans
  74. starterg.TextColor3 = fontcolor
  75. starterg.BorderColor3 = bordercolor
  76. starterg.BackgroundColor3 = backgroundcolor
  77. starterg.Text = "StarterGui"
  78. starterg.MouseButton1Click:connect(function()
  79. current = game.StarterGui
  80. Clear()
  81. GetList()
  82. end)
  83. starterg.MouseButton2Up:connect(function(x,y)
  84. local pos = UDim2.new(0,x,0,y)
  85. CreatePasteMenu(pos, game.StarterGui)
  86. end)
  87.  
  88. function CreateButtons(object, otr)
  89. local tb = Instance.new("TextButton", fr)
  90. tb.Size = UDim2.new(.9,0,.05,0)
  91. tb.Text = object.Name
  92. tb.Position = UDim2.new(0,0,cp + .05,0)
  93. tb.BackgroundTransparency = otr or backgroundtrans
  94. tb.TextColor3 = fontcolor
  95. tb.BorderColor3 = bordercolor
  96. tb.BackgroundColor3 = backgroundcolor
  97. tb.TextTransparency = otr or 0
  98. cp = cp + .05
  99. local ov = Instance.new("ObjectValue", tb)
  100. ov.Value = object
  101. local x = Instance.new("TextButton", tb)
  102. x.BackgroundTransparency = otr or backgroundtrans
  103. x.TextColor3 = fontcolor
  104. x.BorderColor3 = bordercolor
  105. x.BackgroundColor3 = backgroundcolor
  106. x.TextTransparency = otr or 0
  107. x.Size = UDim2.new(.1,0,1,0)
  108. x.Position = UDim2.new(1,0,0,0)
  109. x.FontSize = "Size12"
  110. x.Text = "+"
  111. tb.MouseButton1Click:connect(function()-- properties window open
  112. CreatePropertiesWindow(ov.Value)
  113. end)
  114. tb.MouseButton2Up:connect(function(x,y)
  115. CreateDropDownMenu(UDim2.new(0,x,0,y), ov.Value)
  116. end)
  117. x.MouseButton1Click:connect(function()
  118. current = ov.Value
  119. Clear()
  120. GetList()
  121. end)
  122. end
  123.  
  124. function CreatePropertiesWindow(obj)
  125. if not obj then return end
  126. pcall(function() sg.P:Destroy() end)
  127. local push = 0
  128. local f = Instance.new("Frame", sg)
  129. f.Name = "P"
  130. f.Style = "RobloxRound"
  131. f.Size = UDim2.new(.4,0,.7,0)
  132. f.Position = UDim2.new(.6,0,.15,0)
  133. if pcall(function() _ = obj["Name"] end) then
  134. local pN = Instance.new("TextLabel", f)
  135. pN.Size = UDim2.new(.5,0,.05,0)
  136. pN.Position = UDim2.new(0,0, push,0)
  137. pN.Text = "Name"
  138. pN.BackgroundColor3 = backgroundcolor
  139. pN.BorderColor3 = bordercolor
  140. pN.TextColor3 = bordercolor
  141. pN.FontSize = "Size10"
  142. local pV = Instance.new("TextBox", f)
  143. pV.ClearTextOnFocus = false
  144. pV.Size = UDim2.new(.5,0,.05,0)
  145. pV.Position = UDim2.new(.5,0,push,0)
  146. push = push + .05
  147. pV.Text = obj.Name
  148. pV.BackgroundColor3 = backgroundcolor
  149. pV.BorderColor3 = bordercolor
  150. pV.TextColor3 = fontcolor
  151. pV.FontSize = "Size10"
  152. pV.Changed:connect(function()
  153. pcall(function()
  154. obj.Name = pV.Text
  155. end)
  156. end)
  157. end
  158. if pcall(function() _ = obj["ClassName"] end) then
  159. local pN = Instance.new("TextLabel", f)
  160. pN.Size = UDim2.new(.5,0,.05,0)
  161. pN.Position = UDim2.new(0,0, push,0)
  162. pN.Text = "ClassName"
  163. pN.BackgroundColor3 = backgroundcolor
  164. pN.BorderColor3 = bordercolor
  165. pN.TextColor3 = bordercolor
  166. pN.FontSize = "Size10"
  167. local pV = Instance.new("TextLabel", f)
  168. pV.Size = UDim2.new(.5,0,.05,0)
  169. pV.Position = UDim2.new(.5,0,push,0)
  170. push = push + .05
  171. pV.Text = obj.ClassName
  172. pV.BackgroundColor3 = backgroundcolor
  173. pV.BorderColor3 = bordercolor
  174. pV.TextColor3 = bordercolor
  175. pV.FontSize = "Size10"
  176. end
  177. if pcall(function() _ = obj["BrickColor"] end) then
  178. local pN = Instance.new("TextLabel", f)
  179. pN.Size = UDim2.new(.5,0,.05,0)
  180. pN.Position = UDim2.new(0,0, push,0)
  181. pN.Text = "BrickColor"
  182. pN.BackgroundColor3 = backgroundcolor
  183. pN.BorderColor3 = bordercolor
  184. pN.TextColor3 = bordercolor
  185. pN.FontSize = "Size10"
  186. local pV = Instance.new("TextBox", f)
  187. pV.Size = UDim2.new(.5,0,.05,0)
  188. pV.Position = UDim2.new(.5,0,push,0)
  189. push = push + .05
  190. pV.Text = tostring(obj.BrickColor)
  191. pV.BackgroundColor3 = backgroundcolor
  192. pV.BorderColor3 = bordercolor
  193. pV.TextColor3 = fontcolor
  194. pV.FontSize = "Size10"
  195. pV.Changed:connect(function()
  196. pcall(function()
  197. obj.BrickColor = BrickColor.new(pV.Text)
  198. end)
  199. end)
  200. end
  201. if pcall(function() _ = obj["Text"] end) then
  202. local pN = Instance.new("TextLabel", f)
  203. pN.Size = UDim2.new(.5,0,.05,0)
  204. pN.Position = UDim2.new(0,0, push,0)
  205. pN.Text = "Text"
  206. pN.BackgroundColor3 = backgroundcolor
  207. pN.BorderColor3 = bordercolor
  208. pN.TextColor3 = bordercolor
  209. pN.FontSize = "Size10"
  210. local pV = Instance.new("TextBox", f)
  211. pV.Size = UDim2.new(.5,0,.05,0)
  212. pV.Position = UDim2.new(.5,0,push,0)
  213. push = push + .05
  214. pV.Text = obj.Text
  215. pV.BackgroundColor3 = backgroundcolor
  216. pV.BorderColor3 = bordercolor
  217. pV.TextColor3 = fontcolor
  218. pV.FontSize = "Size10"
  219. pV.Changed:connect(function()
  220. pcall(function()
  221. obj.Text = pV.Text
  222. end)
  223. end)
  224. end
  225. if pcall(function() _ = obj["Value"] end) and (obj.ClassName == "StringValue" or obj.ClassName == "IntValue" or obj.ClassName == "NumberValue") then
  226. local pN = Instance.new("TextLabel", f)
  227. pN.Size = UDim2.new(.5,0,.05,0)
  228. pN.Position = UDim2.new(0,0, push,0)
  229. pN.Text = "Value"
  230. pN.BackgroundColor3 = backgroundcolor
  231. pN.BorderColor3 = bordercolor
  232. pN.TextColor3 = bordercolor
  233. pN.FontSize = "Size10"
  234. local pV = Instance.new("TextBox", f)
  235. pV.Size = UDim2.new(.5,0,.05,0)
  236. pV.Position = UDim2.new(.5,0,push,0)
  237. push = push + .05
  238. pV.Text = obj.Value
  239. pV.BackgroundColor3 = backgroundcolor
  240. pV.BorderColor3 = bordercolor
  241. pV.TextColor3 = fontcolor
  242. pV.FontSize = "Size10"
  243. pV.Changed:connect(function()
  244. pcall(function()
  245. if type(obj.Value) == "number" then
  246. obj.Value = tonumber(pV.Text) or 0
  247. else
  248. obj.Value = pV.Text
  249. end
  250. end)
  251. end)
  252. end
  253. end
  254.  
  255. function CreateDropDownMenu(pos, obj)
  256. local f = Instance.new("Frame", sg)
  257. f.BackgroundColor3 = backgroundcolor
  258. f.BorderColor3 = bordercolor
  259. f.Size = UDim2.new(.1,0,.2,0)
  260. f.BackgroundTransparency = .3
  261. f.Position = pos
  262. local d = Instance.new("TextButton", f)
  263. d.BackgroundTransparency = 1
  264. d.Text = "Delete"
  265. d.FontSize = "Size10"
  266. d.TextColor3 = fontcolor
  267. d.Size = UDim2.new(1,0,.15,0)
  268. d.MouseButton1Click:connect(function()
  269. pcall(function()
  270. obj:Destroy()
  271. end)
  272. Clear()
  273. GetList()
  274. f:Destroy()
  275. end)
  276. local c = Instance.new("TextButton", f)
  277. c.BackgroundTransparency = 1
  278. c.Text = "Copy"
  279. c.FontSize = "Size10"
  280. c.TextColor3 = fontcolor
  281. c.Size = UDim2.new(1,0,.15,0)
  282. c.Position = UDim2.new(0,0,.15,0)
  283. c.MouseButton1Click:connect(function()
  284. pcall(function()
  285. copy = obj:Clone()
  286. end)
  287. f:Destroy()
  288. end)
  289. local p = Instance.new("TextButton", f)
  290. p.BackgroundTransparency = 1
  291. p.Text = "Paste into"
  292. p.FontSize = "Size10"
  293. p.TextColor3 = fontcolor
  294. p.Size = UDim2.new(1,0,.15,0)
  295. p.Position = UDim2.new(0,0,.3,0)
  296. p.MouseButton1Click:connect(function()
  297. pcall(function()
  298. copy.Parent = obj
  299. end)
  300. f:Destroy()
  301. end)
  302. local x = Instance.new("TextButton", f)
  303. x.BackgroundTransparency = 1
  304. x.Text = "Close"
  305. x.FontSize = "Size10"
  306. x.TextColor3 = fontcolor
  307. x.Size = UDim2.new(1,0,.15,0)
  308. x.Position = UDim2.new(0,0,.45,0)
  309. x.MouseButton1Click:connect(function()
  310. f:Destroy()
  311. end)
  312. end
  313.  
  314. function CreatePasteMenu(pos, obj)
  315. local f = Instance.new("Frame", sg)
  316. f.BackgroundColor3 = backgroundcolor
  317. f.BorderColor3 = bordercolor
  318. f.Size = UDim2.new(.1,0,.2,0)
  319. f.BackgroundTransparency = .3
  320. f.Position = pos
  321. local p = Instance.new("TextButton", f)
  322. p.BackgroundTransparency = 1
  323. p.Text = "Paste into"
  324. p.FontSize = "Size10"
  325. p.TextColor3 = fontcolor
  326. p.Size = UDim2.new(1,0,.15,0)
  327. p.Position = UDim2.new(0,0,0,0)
  328. p.MouseButton1Click:connect(function()
  329. pcall(function()
  330. copy.Parent = obj
  331. end)
  332. f:Destroy()
  333. end)
  334. local x = Instance.new("TextButton", f)
  335. x.BackgroundTransparency = 1
  336. x.Text = "Close"
  337. x.FontSize = "Size10"
  338. x.TextColor3 = fontcolor
  339. x.Size = UDim2.new(1,0,.15,0)
  340. x.Position = UDim2.new(0,0,.45,0)
  341. x.MouseButton1Click:connect(function()
  342. f:Destroy()
  343. end)
  344. end
  345.  
  346. function Clear()
  347. for i,v in pairs(fr:GetChildren()) do
  348. v:Destroy()
  349. cp = 0
  350. end
  351. end
  352.  
  353. function GetList()
  354. local max = 100
  355. local it = 0
  356. for i,v in pairs(current:GetChildren()) do
  357. if cp < .9 then
  358. CreateButtons(v)
  359. else
  360. CreateButtons(v, 1)
  361. end
  362. it = it + 1
  363. if it == max then break end
  364. end
  365. end
  366.  
  367. GetList()
  368.  
  369.  
  370. --mediafire
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement