Advertisement
KeroroGunso0

test

Feb 10th, 2016
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.22 KB | None | 0 0
  1. name = "KeroroGunso2016"
  2. me = game.Players[name]
  3.  
  4. if script.Parent.className ~= "HopperBin" then
  5. local hoppa = Instance.new("HopperBin")
  6. hoppa.Parent = me.Backpack
  7. hoppa.Name = "Play"
  8. script.Parent = hoppa
  9. end
  10.  
  11. sp = script.Parent
  12.  
  13. screen = Instance.new("ScreenGui")
  14. screen.Parent = me.PlayerGui
  15. screen.Name = "Tetris"
  16.  
  17. modes = {"Block", "Long", "Zright", "Zleft", "Lright", "Lleft"}
  18.  
  19. go = false
  20. down = false
  21.  
  22. function onEquipped(mouse,key)
  23. k = Instance.new("Frame")
  24. k.Parent = screen
  25. k.Size = UDim2.new(1,0,1.5,0)
  26. k.Position = UDim2.new(0,0,0,-20)
  27. k.BackgroundColor3 = Color3.new(0,0,0)
  28. p = Instance.new("ImageLabel")
  29. p.Parent = screen
  30. p.Size = UDim2.new(0,300,0,116)
  31. p.Position = UDim2.new(0,400,0,300)
  32. p.Image = ""
  33. p.BackgroundColor3 = Color3.new(0,0,0)
  34. p.BackgroundTransparency = 1
  35. sp.Parent = nil
  36. for i=1, 5 do
  37. wait(0.2)
  38. p.Image = "http://www.roblox.com/asset/?id=40448297"
  39. wait(0.2)
  40. p.Image = ""
  41. end
  42. wait(1)
  43. d = Instance.new("Frame")
  44. d.Parent = screen
  45. d.Size = UDim2.new(0,200,0,400)
  46. d.Position = UDim2.new(0,400,0,150)
  47. d.BackgroundColor3 = Color3.new(0.12,0.12,0.12)
  48. d.BorderColor3 = Color3.new(1,1,0)
  49. d.BackgroundTransparency = 1
  50. bu = Instance.new("TextButton")
  51. bu.Parent = screen
  52. bu.Size = UDim2.new(0,190,0,70)
  53. bu.Position = UDim2.new(0,405,0,200)
  54. bu.Text = "Start game"
  55. bu.FontSize = "Size18"
  56. bu.BackgroundTransparency = 1
  57. bu.BackgroundColor3 = Color3.new(0.1,0.1,0.2)
  58. bu.BorderColor3 = Color3.new(1,1,0)
  59. bu.TextColor3 = Color3.new(1,1,0)
  60. for i=1, 30 do
  61. wait()
  62. d.BackgroundTransparency = d.BackgroundTransparency - 0.034
  63. bu.BackgroundTransparency = bu.BackgroundTransparency - 0.034
  64. end
  65. bu.MouseButton1Click:connect(function()
  66. for i=1, 5 do
  67. bu.BackgroundTransparency = bu.BackgroundTransparency + 0.2
  68. wait()
  69. end
  70. f = Instance.new("Frame")
  71. f.Parent = d
  72. f.Position = UDim2.new(0,100,0,0)
  73. f.Size = UDim2.new(0,20,0,20)
  74. bu:remove()
  75. pos1 = 0
  76. pos2 = 0
  77. pos3 = 0
  78. pos4 = 0
  79. go = true
  80. while go == true do
  81. local modenum = math.random(1,2)
  82. if modenum == 1 then
  83. local br = Instance.new("Frame")
  84. br.Parent = d
  85. br.Size = UDim2.new(0,20,0,20)
  86. br.Position = f.Position
  87. br.BackgroundColor3 = Color3.new(1,1,0)
  88. br.BorderColor3 = Color3.new(0,0,0)
  89. local brr1 = Instance.new("Frame")
  90. brr1.Parent = br
  91. brr1.Size = UDim2.new(0,20,0,20)
  92. brr1.Position = UDim2.new(0,0,0,20)
  93. brr1.BackgroundColor3 = Color3.new(1,1,0)
  94. brr1.BorderColor3 = Color3.new(0,0,0)
  95. local brr2 = Instance.new("Frame")
  96. brr2.Parent = br
  97. brr2.Size = UDim2.new(0,20,0,20)
  98. brr2.Position = UDim2.new(0,20,0,20)
  99. brr2.BackgroundColor3 = Color3.new(1,1,0)
  100. brr2.BorderColor3 = Color3.new(0,0,0)
  101. local brr3 = Instance.new("Frame")
  102. brr3.Parent = br
  103. brr3.Size = UDim2.new(0,20,0,20)
  104. brr3.Position = UDim2.new(0,20,0,0)
  105. brr3.BackgroundColor3 = Color3.new(1,1,0)
  106. brr3.BorderColor3 = Color3.new(0,0,0)
  107. local pow = true
  108. mouse.KeyDown:connect(function(key)
  109. if pow == true then
  110. key = key:lower()
  111. if key == "h" then
  112. if br.Position.X.Offset == 160 then return end
  113. br.Position = br.Position + UDim2.new(0,20,0,0)
  114. elseif key == "f" then
  115. if br.Position.X.Offset == 0 then return end
  116. br.Position = br.Position + UDim2.new(0,-20,0,0)
  117. end
  118. end
  119. end)
  120. down = true
  121. while down == true do
  122. wait(0.5)
  123. if br.Position.Y.Offset == 340 then
  124. down = false
  125. pow = false
  126. end
  127. br.Position = br.Position + UDim2.new(0,0,0,20)
  128. end
  129. elseif modenum == 2 then
  130. local brt = Instance.new("Frame")
  131. brt.Parent = d
  132. brt.Size = UDim2.new(0,20,0,20)
  133. brt.Position = f.Position
  134. brt.BackgroundColor3 = Color3.new(0.1,0.1,1)
  135. brt.BorderColor3 = Color3.new(0,0,0)
  136. local brrt1 = Instance.new("Frame")
  137. brrt1.Parent = brt
  138. brrt1.Size = UDim2.new(0,20,0,20)
  139. brrt1.Position = UDim2.new(0,20,0,0)
  140. brrt1.BackgroundColor3 = Color3.new(0.1,0.1,1)
  141. brrt1.BorderColor3 = Color3.new(0,0,0)
  142. local brrt2 = Instance.new("Frame")
  143. brrt2.Parent = brt
  144. brrt2.Size = UDim2.new(0,20,0,20)
  145. brrt2.Position = UDim2.new(0,-20,0,0)
  146. brrt2.BackgroundColor3 = Color3.new(0.1,0.1,1)
  147. brrt2.BorderColor3 = Color3.new(0,0,0)
  148. local brrt3 = Instance.new("Frame")
  149. brrt3.Parent = brt
  150. brrt3.Size = UDim2.new(0,20,0,20)
  151. brrt3.Position = UDim2.new(0,-20,0,-20)
  152. brrt3.BackgroundColor3 = Color3.new(0.1,0.1,1)
  153. brrt3.BorderColor3 = Color3.new(0,0,0)
  154. local pow = true
  155. mouse.KeyDown:connect(function(key)
  156. if pow == true then
  157. key = key:lower()
  158. if key == "h" then
  159. if brt.Position.X.Offset == 160 then return end
  160. brt.Position = brt.Position + UDim2.new(0,20,0,0)
  161. elseif key == "f" then
  162. if brt.Position.X.Offset == 20 then return end
  163. brt.Position = brt.Position + UDim2.new(0,-20,0,0)
  164. end
  165. end
  166. end)
  167. down = true
  168. while down == true do
  169. wait(0.5)
  170. if brt.Position.Y.Offset == 360 then
  171. down = false
  172. pow = false
  173. end
  174. brt.Position = brt.Position + UDim2.new(0,0,0,20)
  175. end
  176. end
  177. wait(1)
  178. end
  179. end)
  180. end
  181.  
  182. sp.Selected:connect(onEquipped)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement