Advertisement
mileskohli

Roblox Studio Script

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