Advertisement
gangmanstyler2

Shh

Apr 23rd, 2015
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.56 KB | None | 0 0
  1.  
  2. me = game.Players.Gangmanstyler2
  3.  
  4.  
  5.  
  6. if script.Parent.className ~= "HopperBin" then
  7.  
  8. local hoppa = Instance.new("HopperBin")
  9.  
  10. hoppa.Parent = me.Backpack
  11.  
  12. hoppa.Name = "Play"
  13.  
  14. script.Parent = hoppa
  15.  
  16. end
  17.  
  18.  
  19.  
  20. sp = script.Parent
  21.  
  22.  
  23.  
  24. screen = Instance.new("ScreenGui")
  25.  
  26. screen.Parent = me.PlayerGui
  27.  
  28. screen.Name = "Tetris"
  29.  
  30.  
  31.  
  32. modes = {"Block", "Long", "Zright", "Zleft", "Lright", "Lleft"}
  33.  
  34.  
  35.  
  36. go = false
  37.  
  38. down = false
  39.  
  40.  
  41.  
  42. function onEquipped(mouse,key)
  43.  
  44. k = Instance.new("Frame")
  45.  
  46. k.Parent = screen
  47.  
  48. k.Size = UDim2.new(1,0,1.5,0)
  49.  
  50. k.Position = UDim2.new(0,0,0,-20)
  51.  
  52. k.BackgroundColor3 = Color3.new(0,0,0)
  53.  
  54. p = Instance.new("ImageLabel")
  55.  
  56. p.Parent = screen
  57.  
  58. p.Size = UDim2.new(0,300,0,116)
  59.  
  60. p.Position = UDim2.new(0,400,0,300)
  61.  
  62. p.Image = ""
  63.  
  64. p.BackgroundColor3 = Color3.new(0,0,0)
  65.  
  66. p.BackgroundTransparency = 1
  67.  
  68. sp.Parent = nil
  69.  
  70. for i=1, 5 do
  71.  
  72. wait(0.2)
  73.  
  74. p.Image = "http://www.roblox.com/asset/?id=40448297"
  75.  
  76. wait(0.2)
  77.  
  78. p.Image = ""
  79.  
  80. end
  81.  
  82. wait(1)
  83.  
  84. d = Instance.new("Frame")
  85.  
  86. d.Parent = screen
  87.  
  88. d.Size = UDim2.new(0,200,0,400)
  89.  
  90. d.Position = UDim2.new(0,400,0,150)
  91.  
  92. d.BackgroundColor3 = Color3.new(0.12,0.12,0.12)
  93.  
  94. d.BorderColor3 = Color3.new(1,1,0)
  95.  
  96. d.BackgroundTransparency = 1
  97.  
  98. bu = Instance.new("TextButton")
  99.  
  100. bu.Parent = screen
  101.  
  102. bu.Size = UDim2.new(0,190,0,70)
  103.  
  104. bu.Position = UDim2.new(0,405,0,200)
  105.  
  106. bu.Text = "Start game"
  107.  
  108. bu.FontSize = "Size18"
  109.  
  110. bu.BackgroundTransparency = 1
  111.  
  112. bu.BackgroundColor3 = Color3.new(0.1,0.1,0.2)
  113.  
  114. bu.BorderColor3 = Color3.new(1,1,0)
  115.  
  116. bu.TextColor3 = Color3.new(1,1,0)
  117.  
  118. for i=1, 30 do
  119.  
  120. wait()
  121.  
  122. d.BackgroundTransparency = d.BackgroundTransparency - 0.034
  123.  
  124. bu.BackgroundTransparency = bu.BackgroundTransparency - 0.034
  125.  
  126. end
  127.  
  128. bu.MouseButton1Click:connect(function()
  129.  
  130. for i=1, 5 do
  131.  
  132. bu.BackgroundTransparency = bu.BackgroundTransparency + 0.2
  133.  
  134. wait()
  135.  
  136. end
  137.  
  138. f = Instance.new("Frame")
  139.  
  140. f.Parent = d
  141.  
  142. f.Position = UDim2.new(0,100,0,0)
  143.  
  144. f.Size = UDim2.new(0,20,0,20)
  145.  
  146. bu:remove()
  147.  
  148. pos1 = 0
  149.  
  150. pos2 = 0
  151.  
  152. pos3 = 0
  153.  
  154. pos4 = 0
  155.  
  156. go = true
  157.  
  158. while go == true do
  159.  
  160. local modenum = math.random(1,2)
  161.  
  162. if modenum == 1 then
  163.  
  164. local br = Instance.new("Frame")
  165.  
  166. br.Parent = d
  167.  
  168. br.Size = UDim2.new(0,20,0,20)
  169.  
  170. br.Position = f.Position
  171.  
  172. br.BackgroundColor3 = Color3.new(1,1,0)
  173.  
  174. br.BorderColor3 = Color3.new(0,0,0)
  175.  
  176. local brr1 = Instance.new("Frame")
  177.  
  178. brr1.Parent = br
  179.  
  180. brr1.Size = UDim2.new(0,20,0,20)
  181.  
  182. brr1.Position = UDim2.new(0,0,0,20)
  183.  
  184. brr1.BackgroundColor3 = Color3.new(1,1,0)
  185.  
  186. brr1.BorderColor3 = Color3.new(0,0,0)
  187.  
  188. local brr2 = Instance.new("Frame")
  189.  
  190. brr2.Parent = br
  191.  
  192. brr2.Size = UDim2.new(0,20,0,20)
  193.  
  194. brr2.Position = UDim2.new(0,20,0,20)
  195.  
  196. brr2.BackgroundColor3 = Color3.new(1,1,0)
  197.  
  198. brr2.BorderColor3 = Color3.new(0,0,0)
  199.  
  200. local brr3 = Instance.new("Frame")
  201.  
  202. brr3.Parent = br
  203.  
  204. brr3.Size = UDim2.new(0,20,0,20)
  205.  
  206. brr3.Position = UDim2.new(0,20,0,0)
  207.  
  208. brr3.BackgroundColor3 = Color3.new(1,1,0)
  209.  
  210. brr3.BorderColor3 = Color3.new(0,0,0)
  211.  
  212. local pow = true
  213.  
  214. mouse.KeyDown:connect(function(key)
  215.  
  216. if pow == true then
  217.  
  218. key = key:lower()
  219.  
  220. if key == "h" then
  221.  
  222. if br.Position.X.Offset == 160 then return end
  223.  
  224. br.Position = br.Position + UDim2.new(0,20,0,0)
  225.  
  226. elseif key == "f" then
  227.  
  228. if br.Position.X.Offset == 0 then return end
  229.  
  230. br.Position = br.Position + UDim2.new(0,-20,0,0)
  231.  
  232. end
  233.  
  234. end
  235.  
  236. end)
  237.  
  238. down = true
  239.  
  240. while down == true do
  241.  
  242. wait(0.5)
  243.  
  244. if br.Position.Y.Offset == 340 then
  245.  
  246. down = false
  247.  
  248. pow = false
  249.  
  250. end
  251.  
  252. br.Position = br.Position + UDim2.new(0,0,0,20)
  253.  
  254. end
  255.  
  256. elseif modenum == 2 then
  257.  
  258. local brt = Instance.new("Frame")
  259.  
  260. brt.Parent = d
  261.  
  262. brt.Size = UDim2.new(0,20,0,20)
  263.  
  264. brt.Position = f.Position
  265.  
  266. brt.BackgroundColor3 = Color3.new(0.1,0.1,1)
  267.  
  268. brt.BorderColor3 = Color3.new(0,0,0)
  269.  
  270. local brrt1 = Instance.new("Frame")
  271.  
  272. brrt1.Parent = brt
  273.  
  274. brrt1.Size = UDim2.new(0,20,0,20)
  275.  
  276. brrt1.Position = UDim2.new(0,20,0,0)
  277.  
  278. brrt1.BackgroundColor3 = Color3.new(0.1,0.1,1)
  279.  
  280. brrt1.BorderColor3 = Color3.new(0,0,0)
  281.  
  282. local brrt2 = Instance.new("Frame")
  283.  
  284. brrt2.Parent = brt
  285.  
  286. brrt2.Size = UDim2.new(0,20,0,20)
  287.  
  288. brrt2.Position = UDim2.new(0,-20,0,0)
  289.  
  290. brrt2.BackgroundColor3 = Color3.new(0.1,0.1,1)
  291.  
  292. brrt2.BorderColor3 = Color3.new(0,0,0)
  293.  
  294. local brrt3 = Instance.new("Frame")
  295.  
  296. brrt3.Parent = brt
  297.  
  298. brrt3.Size = UDim2.new(0,20,0,20)
  299.  
  300. brrt3.Position = UDim2.new(0,-20,0,-20)
  301.  
  302. brrt3.BackgroundColor3 = Color3.new(0.1,0.1,1)
  303.  
  304. brrt3.BorderColor3 = Color3.new(0,0,0)
  305.  
  306. local pow = true
  307.  
  308. mouse.KeyDown:connect(function(key)
  309.  
  310. if pow == true then
  311.  
  312. key = key:lower()
  313.  
  314. if key == "h" then
  315.  
  316. if brt.Position.X.Offset == 160 then return end
  317.  
  318. brt.Position = brt.Position + UDim2.new(0,20,0,0)
  319.  
  320. elseif key == "f" then
  321.  
  322. if brt.Position.X.Offset == 20 then return end
  323.  
  324. brt.Position = brt.Position + UDim2.new(0,-20,0,0)
  325.  
  326. end
  327.  
  328. end
  329.  
  330. end)
  331.  
  332. down = true
  333.  
  334. while down == true do
  335.  
  336. wait(0.5)
  337.  
  338. if brt.Position.Y.Offset == 360 then
  339.  
  340. down = false
  341.  
  342. pow = false
  343.  
  344. end
  345.  
  346. brt.Position = brt.Position + UDim2.new(0,0,0,20)
  347.  
  348. end
  349.  
  350. end
  351.  
  352. wait(1)
  353.  
  354. end
  355.  
  356. end)
  357.  
  358. end
  359.  
  360.  
  361.  
  362. sp.Selected:connect(onEquipped)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement