Advertisement
SlyHades66

Finalist gui

Mar 22nd, 2016
337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.83 KB | None | 0 0
  1. --Fab Teleporter
  2. game.Workspace.Eggs.ChildAdded:connect(function(egg)
  3. if string.match(egg.Name, "Fab") or string.match(egg.Name, "Admin") or string.match(egg.Name, "Dragon") then
  4. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = egg.CFrame
  5. end
  6. end)
  7. wait(0.03)
  8.  
  9. --Eggs
  10. local s = Instance.new("ScreenGui", game.CoreGui)
  11. local f = Instance.new("Frame", s)
  12. f.BackgroundTransparency = 1
  13. f.Position = UDim2.new(0.2,0,0.1,0)
  14. button = Instance.new("TextButton", f)
  15. button.Name = "1"
  16. button.Text = "Teleport Eggs To Player"
  17. button.BackgroundTransparency = 1
  18. button.TextColor3 = Color3.new(255,255,255)
  19. button.Font = "SourceSansBold"
  20. button.FontSize = "Size24"
  21. button.Size = UDim2.new(0,200,0,20)
  22. button.Position = button.Position-UDim2.new(0,55,0,0)
  23.  
  24. shards = Instance.new("TextButton", s)
  25. shards.Name = "Shards"
  26. shards.Text = "Shards: "..game.ReplicatedStorage.Shards.Value
  27. shards.BackgroundTransparency = 1
  28. shards.TextColor3 = Color3.new(255,255,255)
  29. shards.Font = "SourceSansBold"
  30. shards.FontSize = "Size24"
  31. shards.Size = UDim2.new(0,200,0,20)
  32. shards.Position = shards.Position-UDim2.new(0,0,-0.3,0)
  33.  
  34. game.ReplicatedStorage.Shards.Changed:connect(function()
  35. shards.Text = "Shards: "..game.ReplicatedStorage.Shards.Value
  36. end)
  37.  
  38. button.MouseButton1Down:connect(function()
  39. function g(o)
  40. for i,v in pairs(o:children())do
  41. if v.ClassName == "Part" then
  42. v.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  43. end
  44. g(v)
  45. end
  46. end
  47. pcall(g,game.Workspace.Eggs)
  48. end)
  49.  
  50. local e = 2
  51. local previousvalue = 1
  52. for i,v in pairs(game.Workspace.Eggs:GetChildren()) do
  53. if f:FindFirstChild('1') then
  54. local q = Instance.new("TextButton", f)
  55. q.Size = UDim2.new(0,200,0,20)
  56. q.BackgroundTransparency = 1
  57. if string.match(q.Text, "Fab") or string.match(q.Text, "Admin") or string.match(q.Text,"Dragon") then
  58. q.TextColor3 = Color3.new(255,0,0)
  59. else
  60. q.TextColor3 = Color3.new(255,255,255)
  61. end
  62. q.Name = e
  63. q.Text = v.Name
  64. q.Font = "SourceSansBold"
  65. q.FontSize = "Size24"
  66. q.Position = f[previousvalue].Position+UDim2.new(0,0,0,28)
  67. previousvalue = e
  68. e = e+1
  69. end
  70. end
  71.  
  72. game.Workspace.Eggs.ChildAdded:connect(function(player)
  73. for i,v in pairs(f:GetChildren()) do
  74. if v.Name ~= "1" then
  75. v:Destroy()
  76. end
  77. end
  78. local e = 2
  79. local previousvalue = 1
  80. for i,v in pairs(game.Workspace.Eggs:GetChildren()) do
  81. if f:FindFirstChild('1') then
  82. local q = Instance.new("TextButton", f)
  83. q.Size = UDim2.new(0,200,0,20)
  84. q.BackgroundTransparency = 1
  85. if string.match(q.Text, "Fab") or string.match(q.Text, "Admin") or string.match(q.Text, "Dragon") then
  86. q.TextColor3 = Color3.new(255,0,0)
  87. else
  88. q.TextColor3 = Color3.new(255,255,255)
  89. end
  90. q.Name = e
  91. q.Text = v.Name
  92. q.Font = "SourceSansBold"
  93. q.FontSize = "Size24"
  94. q.Position = f[previousvalue].Position+UDim2.new(0,0,0,28)
  95. previousvalue = e
  96. e = e+1
  97. end
  98. end
  99. for i,v in pairs(f:GetChildren()) do
  100. if v.Name ~= "1" then
  101. v.MouseButton1Down:connect(function()
  102. function g(o)
  103. for i,c in pairs(o:children())do
  104. if c.Name == v.Text or c.Parent.Name == v.Text or c.Parent.Parent.Name == v.Text or c.Parent.Parent.Parent.Name == v.Text then
  105. if c.ClassName == "Part" then
  106. wait(0.3)
  107. if c.Name == v.Text or c.Parent.Name == v.Text or c.Parent.Parent.Name == v.Text or c.Parent.Parent.Parent.Name == v.Text then
  108. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = c.CFrame
  109. end
  110. end
  111. end
  112. g(c)
  113. end
  114. end
  115. pcall(g,game.Workspace.Eggs)
  116. end)
  117. end
  118. end
  119. end)
  120. wait(0.03)
  121. for i,v in pairs(f:GetChildren()) do
  122. if v.Name ~= "1" then
  123. v.MouseButton1Down:connect(function()
  124. function g(o)
  125. for i,c in pairs(o:children())do
  126. if c.Name == v.Text or c.Parent.Name == v.Text or c.Parent.Parent.Name == v.Text or c.Parent.Parent.Parent.Name == v.Text then
  127. if c.ClassName == "Part" then
  128. wait(0.3)
  129. if c.Name == v.Text or c.Parent.Name == v.Text or c.Parent.Parent.Name == v.Text or c.Parent.Parent.Parent.Name == v.Text then
  130. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = c.CFrame
  131. end
  132. end
  133. end
  134. g(c)
  135. end
  136. end
  137. pcall(g,game.Workspace.Eggs)
  138. end)
  139. end
  140. end
  141.  
  142. game.Workspace.Eggs.ChildRemoved:connect(function(removed)
  143. for i,v in pairs(f:GetChildren()) do
  144. if v.Name ~= "1" then
  145. v:Destroy()
  146. end
  147. end
  148. local e = 2
  149. local previousvalue = 1
  150. for i,v in pairs(game.Workspace.Eggs:GetChildren()) do
  151. if f:FindFirstChild('1') then
  152. local q = Instance.new("TextButton", f)
  153. q.Size = UDim2.new(0,200,0,20)
  154. q.BackgroundTransparency = 1
  155. if string.match(q.Text, "Fab") or string.match(q.Text, "Admin") or string.match(q.Text, "Dragon") then
  156. q.TextColor3 = Color3.new(255,0,0)
  157. else
  158. q.TextColor3 = Color3.new(255,255,255)
  159. end
  160. q.Name = e
  161. q.Text = v.Name
  162. q.Font = "SourceSansBold"
  163. q.FontSize = "Size24"
  164. q.Position = f[previousvalue].Position+UDim2.new(0,0,0,28)
  165. previousvalue = e
  166. e = e+1
  167. end
  168. end
  169. for i,v in pairs(f:GetChildren()) do
  170. if v.Name ~= "1" then
  171. v.MouseButton1Down:connect(function()
  172. function g(o)
  173. for i,c in pairs(o:children())do
  174. if c.Name == v.Text or c.Parent.Name == v.Text or c.Parent.Parent.Name == v.Text or c.Parent.Parent.Parent.Name == v.Text then
  175. if c.ClassName == "Part" then
  176. wait(0.3)
  177. if c.Name == v.Text or c.Parent.Name == v.Text or c.Parent.Parent.Name == v.Text or c.Parent.Parent.Parent.Name == v.Text then
  178. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = c.CFrame
  179. end
  180. end
  181. end
  182. g(c)
  183. end
  184. end
  185. pcall(g,game.Workspace.Eggs)
  186. end)
  187. end
  188. end
  189. end)
  190. wait(0.03)
  191. for i,v in pairs(f:GetChildren()) do
  192. if v.Name ~= "1" then
  193. v.MouseButton1Down:connect(function()
  194. function g(o)
  195. for i,c in pairs(o:children())do
  196. if c.Name == v.Text or c.Parent.Name == v.Text or c.Parent.Parent.Name == v.Text or c.Parent.Parent.Parent.Name == v.Text then
  197. if c.ClassName == "Part" then
  198. wait(0.3)
  199. if c.Name == v.Text or c.Parent.Name == v.Text or c.Parent.Parent.Name == v.Text or c.Parent.Parent.Parent.Name == v.Text then
  200. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = c.CFrame
  201. end
  202. end
  203. end
  204. g(c)
  205. end
  206. end
  207. pcall(g,game.Workspace.Eggs)
  208. end)
  209. end
  210. end
  211. --Collectibles
  212. wait(3)
  213.  
  214. local s = Instance.new("ScreenGui", game.CoreGui)
  215. local f = Instance.new("Frame", s)
  216. f.BackgroundTransparency = 1
  217. f.Position = UDim2.new(0.8,0,0.1,0)
  218. button = Instance.new("TextButton", f)
  219. button.Name = "1"
  220. button.Text = "Teleport Collectibles To Player"
  221. button.BackgroundTransparency = 1
  222. button.TextColor3 = Color3.new(255,255,255)
  223. button.Font = "SourceSansBold"
  224. button.FontSize = "Size24"
  225. button.Size = UDim2.new(0,200,0,20)
  226. button.Position = button.Position-UDim2.new(0,55,0,0)
  227.  
  228. button.MouseButton1Down:connect(function()
  229. function g(o)
  230. for i,v in pairs(o:children())do
  231. if v.ClassName == "Part" or c.ClassName == "UnionOperation" and c.Transparency == 0 then
  232. v.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  233. end
  234. g(v)
  235. end
  236. end
  237. pcall(g,game.Workspace.CollectibleItems)
  238. end)
  239.  
  240. local e = 2
  241. local previousvalue = 1
  242. for i,v in pairs(game.Workspace.CollectibleItems:GetChildren()) do
  243. if f:FindFirstChild('1') then
  244. local q = Instance.new("TextButton", f)
  245. q.Size = UDim2.new(0,200,0,20)
  246. q.BackgroundTransparency = 1
  247. q.TextColor3 = Color3.new(255,255,255)
  248. q.Name = e
  249. q.Text = v.Name
  250. q.Font = "SourceSansBold"
  251. q.FontSize = "Size24"
  252. q.Position = f[previousvalue].Position+UDim2.new(0,0,0,28)
  253. previousvalue = e
  254. e = e+1
  255. end
  256. end
  257.  
  258. game.Workspace.CollectibleItems.ChildAdded:connect(function(player)
  259. local q = Instance.new("TextButton", f)
  260. q.Size = UDim2.new(0,200,0,20)
  261. q.BackgroundTransparency = 1
  262. q.TextColor3 = Color3.new(255,255,255)
  263. q.Name = e
  264. q.Text = player.Name
  265. q.Font = "SourceSansBold"
  266. q.FontSize = "Size24"
  267. q.Position = f[previousvalue].Position+UDim2.new(0,0,0,28)
  268. previousvalue = e
  269. e = e+1
  270. end)
  271.  
  272. game.Workspace.CollectibleItems.ChildRemoved:connect(function(removed)
  273. for i,v in pairs(f:GetChildren()) do
  274. if v.Name ~= "1" then
  275. v:Destroy()
  276. end
  277. end
  278. wait(0.03)
  279.  
  280. local e = 2
  281. local previousvalue = 1
  282. for i,v in pairs(game.Workspace.CollectibleItems:GetChildren()) do
  283. if f:FindFirstChild('1') then
  284. local q = Instance.new("TextButton", f)
  285. q.Size = UDim2.new(0,200,0,20)
  286. q.BackgroundTransparency = 1
  287. q.TextColor3 = Color3.new(255,255,255)
  288. q.Name = e
  289. q.Text = v.Name
  290. q.Font = "SourceSansBold"
  291. q.FontSize = "Size24"
  292. q.Position = f[previousvalue].Position+UDim2.new(0,0,0,28)
  293. previousvalue = e
  294. e = e+1
  295. end
  296. end
  297. end)
  298.  
  299. for i,v in pairs(f:GetChildren()) do
  300. if v.Name ~= "1" then
  301. v.MouseButton1Down:connect(function()
  302. function g(o)
  303. for i,c in pairs(o:children())do
  304. if c.Name == v.Text or c.Parent.Name == v.Text or c.Parent.Parent.Name == v.Text or c.Parent.Parent.Parent.Name == v.Text then
  305. if c.ClassName == "Part" or c.ClassName == "UnionOperation" and c.Transparency == 0 then
  306. wait(0.3)
  307. if c.Name == v.Text or c.Parent.Name == v.Text or c.Parent.Parent.Name == v.Text or c.Parent.Parent.Parent.Name == v.Text then
  308. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = c.CFrame
  309. end
  310. end
  311. end
  312. g(c)
  313. end
  314. end
  315. pcall(g,game.Workspace.CollectibleItems)
  316. end)
  317. end
  318. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement