Upscalefanatic3

Customization GUI

Jun 26th, 2019
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local localplayer = game.Players:findFirstChild("docrobloxman52")
  2. local char = localplayer.Character char.Humanoid.MaxHealth = math.huge
  3. local pg = localplayer.PlayerGui
  4. gui = Instance.new('ScreenGui',pg)
  5. m = Instance.new('TextButton',gui)
  6. m.BorderSizePixel = 0
  7. m.Draggable = true
  8. m.BackgroundColor3 = Color3.new(211/255, 211/255, 211/255)
  9. m.Size = UDim2.new(0,400,0,20)
  10. m.Text = ''
  11. m.Position = UDim2.new(0,200,0,300)
  12. main = Instance.new('Frame',m)
  13. main.Draggable = true
  14. main.Size = UDim2.new(0,400,0,200)
  15. main.Position = UDim2.new(0,0,0,20)
  16. main.BorderSizePixel = 0
  17. gui.Name = 'gui'
  18. txt = Instance.new('TextBox',main)
  19. txt.Size = UDim2.new(0, 300,0, 50)
  20. txt.TextColor3 = Color3.new(1,1,1)
  21. txt.BackgroundColor3 = Color3.new(211/255, 211/255, 211/255)
  22. txt.BorderSizePixel = 0
  23. txt.Font = Enum.Font.Code
  24. txt.FontSize = Enum.FontSize.Size24
  25. txt.TextWrapped = true
  26. txt.Text = 'Enter Code'
  27. txt.ClearTextOnFocus = true
  28. txt.Position = UDim2.new(0,20,0,70)
  29. btt = Instance.new('TextButton',main)
  30. btt.Size = UDim2.new(0,50,0,50)
  31. btt.Position = UDim2.new(0,335,0,70)
  32. btt.BackgroundColor3 = Color3.new(211/255, 211/255, 211/255)
  33. btt.TextColor3 = Color3.new(1,1,1)
  34. btt.Text = 'Enter'
  35. btt.BorderSizePixel = 0
  36.  
  37.  
  38. --[[ Customization ]]--
  39.  
  40.  
  41.  
  42. local c = Instance.new('ScreenGui',pg)
  43. c.Name = 'Customization Gui'
  44. local b = Instance.new('TextButton',c)
  45. b.Size = UDim2.new(0,200,0,20)
  46. b.Position = UDim2.new(0,200,0,200)
  47. b.Size = UDim2.new(0,300,0,300)
  48. b.Position = UDim2.new(0,400,0,400)
  49. b.BackgroundColor3 = Color3.new(211/255,211/255,211/255)
  50. b.BorderSizePixel = 0
  51. b.Position = UDim2.new(0,200,0,0)
  52. b.Size = UDim2.new(0,20,0,20)
  53. b.Text = '+'
  54. b.TextSize = 23
  55. local b1 = Instance.new('TextButton',b)
  56. b1.BackgroundColor3 = Color3.new(211/255,211/255,211/255)
  57. b1.BorderSizePixel = 0
  58. b1.Position = UDim2.new(0,-105,0,175)
  59. b1.Size = UDim2.new(0,300,0,20)
  60. b1.Text = ' '
  61. b1.Visible = false
  62. b1.Draggable = true
  63. local f = Instance.new('Frame', b1)
  64. f.Name = 'Main Frame'
  65. f.BackgroundColor3 = Color3.new(163/255, 162/255, 165/255)
  66. f.BorderSizePixel = 0
  67. f.Position = UDim2.new(0,0,0,20)
  68. f.Size = UDim2.new(0,300,0,300)
  69. local t = Instance.new('TextLabel',c)
  70. t.BackgroundColor3 = Color3.new(211/255, 211/255, 211/255)
  71. t.BorderSizePixel = 0
  72. t.Position = UDim2.new(0,0,0,0)
  73. t.Size = UDim2.new(0,200,0,20)
  74. t.Font = Enum.Font.Code
  75. t.Text = 'Customization'
  76. t.TextSize = 20
  77. local color = Instance.new("TextButton",f)
  78. color.Name = "Color"
  79. color.BackgroundColor3 = Color3.new(163/255,162/255,165/255)
  80. color.BorderColor3 = Color3.new(0,0,0)
  81. color.BorderSizePixel = 1
  82. color.Position = UDim2.new(0,120,0,200)
  83. color.Size = UDim2.new(0,50,0,20)
  84. color.Font = Enum.Font.Legacy
  85. color.TextSize = 8
  86. color.Text = "Set color"
  87.  
  88.  
  89.  
  90. b.MouseButton1Click:connect(function()
  91. b1.Visible = not b1.Visible
  92. if b1.Visible == true then
  93. b.Text = '-'
  94. else
  95. b.Text = '+'
  96. end
  97. end)
  98.  
  99.  
  100.  
  101. --Colors--
  102.  
  103. -- red orange yellow green blue pink purple black white
  104.  
  105.  
  106. local r = Instance.new('TextButton',f)
  107. r.Name = 'Red'
  108. r.Text = ' '
  109. r.BackgroundColor3 = Color3.new(1,0,0)
  110. r.BorderSizePixel = 0
  111. r.Size = UDim2.new(0,50,0,50)
  112. r.Position = UDim2.new(0,20,0,20)
  113. r.MouseButton1Click:connect(function()
  114. main.BackgroundColor3 = Color3.new(1,0,0)
  115. txt.TextColor3 = Color3.new(1,0,0)
  116. btt.TextColor3 = Color3.new(1,0,0)
  117. txt.TextStrokeTransparency = 1
  118. btt.TextStrokeTransparency = 1
  119. end)
  120. local g = Instance.new('TextButton',f)
  121. g.Name = 'Green'
  122. g.Text = ' '
  123. g.BackgroundColor3 = Color3.new(0,1,0)
  124. g.BorderSizePixel = 0
  125. g.Size = UDim2.new(0,50,0,50)
  126. g.Position = UDim2.new(0,120,0,20)
  127. g.MouseButton1Click:connect(function()
  128. main.BackgroundColor3 = Color3.new(0,1,0)
  129. txt.TextColor3 = Color3.new(0,1,0)
  130. btt.TextColor3 = Color3.new(0,1,0)
  131. txt.TextStrokeTransparency = .9
  132. btt.TextStrokeTransparency = .9
  133. end)
  134. local b = Instance.new('TextButton',f)
  135. b.Name = 'Blue'
  136. b.Text = ' '
  137. b.BackgroundColor3 = Color3.new(0,0,1)
  138. b.BorderSizePixel = 0
  139. b.Size = UDim2.new(0,50,0,50)
  140. b.Position = UDim2.new(0,220,0,20)
  141. b.MouseButton1Click:connect(function()
  142. main.BackgroundColor3 = Color3.new(0,0,1)
  143. txt.TextColor3 = Color3.new(0,0,1)
  144. btt.TextColor3 = Color3.new(0,0,1)
  145. txt.TextStrokeTransparency = 1
  146. btt.TextStrokeTransparency = 1
  147. end)
  148.  
  149. local mainFrame = Instance.new('Frame',f)
  150. mainFrame.Name = "main frame"
  151.  
  152. local red = Instance.new('TextBox',mainFrame)
  153. red.Size = UDim2.new(0,50,0,20)
  154. red.Position = UDim2.new(0,20,0,250)
  155. red.Text = '255'
  156. red.TextWrapped = true
  157. local tr = Instance.new('TextLabel',red)
  158. tr.BackgroundTransparency = 1
  159. tr.Size = UDim2.new(0,50,0,20)
  160. tr.Position = UDim2.new(0,0,0,-20)
  161. tr.Text = "Red"
  162. local green = Instance.new('TextBox',mainFrame)
  163. green.Size = UDim2.new(0,50,0,20)
  164. green.Position = UDim2.new(0,120,0,250)
  165. green.Text = '255'
  166. green.TextWrapped = true
  167. local tg = Instance.new('TextLabel',green)
  168. tg.BackgroundTransparency = 1
  169. tg.Size = UDim2.new(0,50,0,20)
  170. tg.Position = UDim2.new(0,0,0,-20)
  171. tg.Text = "Green"
  172. local blue = Instance.new('TextBox',mainFrame)
  173. blue.Size = UDim2.new(0,50,0,20)
  174. blue.Position = UDim2.new(0,220,0,250)
  175. blue.Text = '255'
  176. blue.TextWrapped = true
  177. local tb = Instance.new('TextLabel',blue)
  178. tb.BackgroundTransparency = 1
  179. tb.Size = UDim2.new(0,50,0,20)
  180. tb.Position = UDim2.new(0,0,0,-20)
  181. tb.Text = "Blue"
  182.  
  183. color.MouseButton1Click:connect(function()
  184. main.BackgroundColor3 = Color3.new(red.Text/255,green.Text/255,blue.Text/255)
  185. txt.TextColor3 = Color3.new(red.Text/255,green.Text/255,blue.Text/255)
  186. btt.TextColor3 = Color3.new(red.Text/255,green.Text/255,blue.Text/255)
  187. txt.TextStrokeTransparency = 1
  188. btt.TextStrokeTransparency = 1
  189. end)
  190.  
  191. local button = Instance.new("TextButton",main)
  192. button.Text = "Clear feed"
  193. button.TextWrapped = true
  194. button.Font = Enum.Font.Code
  195. button.BackgroundColor3 = Color3.new(211/255,211/255,211/255)
  196. button.BorderSizePixel = 0
  197. button.Position = UDim2.new(0,270,0,120)
  198. button.Size = UDim2.new(0,50,0,50)
  199. button.TextSize = 14
  200.  
  201. local folder = Instance.new("Folder",main)
  202.  
  203.  
  204.  
  205. --[[ Functions --]]
  206.  
  207. button.MouseButton1Click:connect(function()
  208. for i,v in pairs(folder:GetChildren()) do
  209. if v:IsA("TextLabel") then
  210. v:Destroy()
  211. end
  212. end
  213. end)
  214.  
  215.  
  216. function feed(player,action)
  217. local feeds = {}
  218. local twenty = 20
  219. local f = 120
  220.  
  221. local p = Instance.new("TextLabel",folder)
  222. p.Size = UDim2.new(0,200,0,20)
  223. p.BackgroundColor3 = Color3.new(211/255,211/255,211/255)
  224. p.BorderSizePixel = 0
  225. p.Position = UDim2.new(0,70,0,100)
  226. p.Text = "You "..action.."ed "..player
  227. p.Font = Enum.Font.Code
  228. p.TextSize = 15
  229.  
  230. for i,v in pairs(folder:GetChildren()) do
  231. v.Position = UDim2.new(0,70,0,v.Position.Y.Offset+20)
  232. table.insert(feeds,v.Position)
  233. end
  234.  
  235. for i,v in pairs(folder:GetChildren()) do
  236. if v:IsA("TextLabel") then
  237. if v.Position.Y.Offset > 180 then
  238. table.remove(feeds,1)
  239. v:Destroy()
  240. end
  241. end
  242. end
  243.  
  244. end
  245.  
  246.  
  247. function text(i)
  248. return txt.Text:lower():sub(1,i)
  249. end
  250. function name(n)
  251. return txt.Text:lower():sub(n)
  252. end
  253.  
  254. function player(name)
  255. local n = string.len(name)
  256. if name:lower() == "me" then
  257. return localplayer
  258. elseif name:lower() == "all" then
  259. for _,v in ipairs(game.Players:GetPlayers()) do
  260. return v
  261. end
  262. elseif name:lower() == "others" then
  263. for _,v in ipairs(game.Players:GetPlayers()) do
  264. if v.Name ~= localplayer then
  265. return v
  266. end
  267. end
  268. end
  269. for i,v in ipairs(game.Players:GetPlayers()) do
  270. if v.Name:lower():sub(1,n) == name:lower() then
  271. return v
  272. end
  273. end
  274. end
  275.  
  276. btt.MouseButton1Click:connect(function()
  277. if text(5) == 'kill ' then
  278. local i = player(name(6))
  279. i.Heath -= i.Health
  280. feed(name(6),"kill")
  281. end
  282.  
  283. if text(11) == 'nohumanoid ' then
  284. local i = player(name(12))
  285. if i and i.Character then
  286. i.Character.Humanoid:Destroy()
  287. feed(name(12),"nohumanoid")
  288. end
  289. end
  290.  
  291. if text(9) == 'platform ' then
  292. local i = player(name(10))
  293. if i then
  294. local p = Instance.new('Part',workspace)
  295. p.Size = Vector3.new(6, 1, 7)
  296. p.Position = Vector3.new(4, 100, -25.5)
  297. p.Anchored = true
  298. i.Character.HumanoidRootPart.CFrame = CFrame.new(4, 125, -25.5)
  299. feed(name(10),"platform")
  300. end
  301.  
  302. end
  303.  
  304.  
  305.  
  306. if text(4) == "exit" or text(4) == "quit" then
  307. m:Destroy()
  308. c:Destroy()
  309. gui:Destroy()
  310. end
  311. end)
Add Comment
Please, Sign In to add comment