NightGamingVN

public script 11 - tetris 99

Jun 16th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.05 KB | None | 0 0
  1. --tetris 99 thingie by pdnghiaqoi [ marseio ]
  2. --run this in a public server would be a good idea
  3. ScreenGui0 = Instance.new("ScreenGui")
  4. Frame1 = Instance.new("Frame")
  5. TextLabel2 = Instance.new("TextLabel")
  6. ScreenGui0.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  7. Frame1.Parent = ScreenGui0
  8. Frame1.Size = UDim2.new(1, 0, 1, 0)
  9. Frame1.BackgroundColor = BrickColor.new("Institutional white")
  10. Frame1.BackgroundColor3 = Color3.new(1, 1, 1)
  11. Frame1.BackgroundTransparency = 1
  12. TextLabel2.Parent = Frame1
  13. TextLabel2.Position = UDim2.new(0, 0, 0.5, 0)
  14. TextLabel2.Size = UDim2.new(1, 0, 0, 0)
  15. TextLabel2.BackgroundColor = BrickColor.new("Institutional white")
  16. TextLabel2.BackgroundColor3 = Color3.new(1, 1, 1)
  17. TextLabel2.BackgroundTransparency = 1
  18. TextLabel2.Font = Enum.Font.SciFi
  19. TextLabel2.FontSize = Enum.FontSize.Size14
  20. TextLabel2.Text = "Remaining: 10 player(s)"
  21. TextLabel2.TextColor = BrickColor.new("Dark stone grey")
  22. TextLabel2.TextColor3 = Color3.new(0.364706, 0.364706, 0.364706)
  23. TextLabel2.TextScaled = true
  24. TextLabel2.TextSize = 14
  25. TextLabel2.TextStrokeTransparency = 0.8
  26. TextLabel2.TextTransparency = 0.8
  27. TextLabel2.TextWrap = true
  28. TextLabel2.TextWrapped = true
  29. Sound = nil
  30. function makesound(typ)
  31. if Sound then
  32. Sound:Destroy()
  33. end
  34. local snd = Instance.new("Sound")
  35. snd.Volume = 5
  36. snd.Parent = game:GetService("ReplicatedStorage")
  37. snd.SoundId = "rbxassetid://2512057731"
  38. snd:Play()
  39. snd.Ended:Connect(function()
  40. snd:Remove()
  41. end)
  42. wait(1.75)
  43. print("making sound")
  44. Sound = Instance.new("Sound")
  45. Sound.Volume = 5
  46. Sound.Looped = true
  47. Sound.Parent = game:GetService("ReplicatedStorage")
  48. if typ == "start" then
  49. Sound.SoundId = "rbxassetid://2854896331"
  50. elseif typ == "close" then
  51. Sound.SoundId = "rbxassetid://2854897393"
  52. elseif typ == "end" then
  53. Sound.SoundId = "rbxassetid://2854898705"
  54. end
  55. Sound:Play()
  56. end
  57. function makeandtween(text)
  58. print("making")
  59. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  60. spawn(function()
  61. local gui = ScreenGui0:Clone()
  62. gui.Parent = v.PlayerGui
  63. local frm = gui:FindFirstChildOfClass("Frame")
  64. local label = frm:FindFirstChildOfClass("TextLabel")
  65. label.Text = text
  66. label:TweenSizeAndPosition(UDim2.new(1,0,0,50),UDim2.new(0, 0,0.5, -25),"Out","Back",0.5)
  67. wait(2)
  68. label:TweenSizeAndPosition(UDim2.new(1,0,0,0),UDim2.new(0, 0,0.5, 0),"In","Back",0.5)
  69. wait(0.6)
  70. gui:Remove()
  71. end)
  72. end
  73. end
  74. function retur()
  75. local d = 0
  76. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  77. if v ~= owner then
  78. d = d + 1
  79. end
  80. end
  81. if d == 0 then d = 1 end
  82. return d
  83. end
  84. function b()
  85. local ScreenGui01 = Instance.new("ScreenGui")
  86. local Frame11 = Instance.new("Frame")
  87. local ImageLabel21 = Instance.new("ImageLabel")
  88. local ImageLabel31 = Instance.new("ImageLabel")
  89. local Frame41 = Instance.new("Frame")
  90. local TextLabel51 = Instance.new("TextLabel")
  91. local TextLabel61 = Instance.new("TextLabel")
  92. ScreenGui01.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  93. Frame11.Parent = ScreenGui01
  94. Frame11.Size = UDim2.new(1, 0, 1, 0)
  95. Frame11.BackgroundColor = BrickColor.new("Institutional white")
  96. Frame11.BackgroundColor3 = Color3.new(1, 1, 1)
  97. Frame11.BackgroundTransparency = 0
  98. Frame11.BorderSizePixel = 0
  99. Frame11.ZIndex = 0
  100. ImageLabel21.Name = "img"
  101. ImageLabel21.Parent = Frame11
  102. ImageLabel21.Position = UDim2.new(0, -0, 0, -0)
  103. ImageLabel21.Size = UDim2.new(1, 0, 1, 0)
  104. ImageLabel21.BackgroundColor = BrickColor.new("Institutional white")
  105. ImageLabel21.BackgroundColor3 = Color3.new(1, 1, 1)
  106. ImageLabel21.BackgroundTransparency = 1
  107. ImageLabel21.ImageTransparency = 1
  108. ImageLabel21.LayoutOrder = 2
  109. ImageLabel21.ZIndex = 10
  110. ImageLabel21.Image = "rbxassetid://3275213505"
  111. ImageLabel31.Name = "text"
  112. ImageLabel31.Parent = Frame11
  113. ImageLabel31.Position = UDim2.new(0, 0, 0.100000001, 0)
  114. ImageLabel31.Size = UDim2.new(1, 0, 0, 0)
  115. ImageLabel31.BackgroundColor = BrickColor.new("Institutional white")
  116. ImageLabel31.BackgroundColor3 = Color3.new(1, 1, 1)
  117. ImageLabel31.BackgroundTransparency = 1
  118. ImageLabel31.LayoutOrder = 2
  119. ImageLabel31.ZIndex = 10
  120. ImageLabel31.Image = "rbxassetid://3275273693"
  121. Frame41.Parent = Frame11
  122. Frame41.Visible = false
  123. Frame41.Position = UDim2.new(0.5, -125, 0.5, 175)
  124. Frame41.Size = UDim2.new(0, 250, 0, 30)
  125. Frame41.BackgroundColor = BrickColor.new("Really blue")
  126. Frame41.BackgroundColor3 = Color3.new(0, 0, 1)
  127. Frame41.BackgroundTransparency = 0.75
  128. Frame41.BorderColor = BrickColor.new("Really blue")
  129. Frame41.BorderColor3 = Color3.new(0, 0, 1)
  130. TextLabel51.Parent = Frame41
  131. TextLabel51.Position = UDim2.new(0, 10, 0, 0)
  132. TextLabel51.Size = UDim2.new(0, 200, 1, 0)
  133. TextLabel51.BackgroundColor = BrickColor.new("Institutional white")
  134. TextLabel51.BackgroundColor3 = Color3.new(1, 1, 1)
  135. TextLabel51.BackgroundTransparency = 1
  136. TextLabel51.Font = Enum.Font.SourceSansSemibold
  137. TextLabel51.FontSize = Enum.FontSize.Size28
  138. TextLabel51.Text = "pdnghiaqoi"
  139. TextLabel51.TextColor = BrickColor.new("Institutional white")
  140. TextLabel51.TextColor3 = Color3.new(1, 1, 1)
  141. TextLabel51.TextSize = 25
  142. TextLabel51.TextStrokeTransparency = 0
  143. TextLabel51.TextWrap = true
  144. TextLabel51.TextWrapped = true
  145. TextLabel51.TextXAlignment = Enum.TextXAlignment.Left
  146. TextLabel61.Parent = Frame41
  147. TextLabel61.Position = UDim2.new(1, -75, 0.5, -15)
  148. TextLabel61.Size = UDim2.new(0, 75, 1, 0)
  149. TextLabel61.BackgroundColor = BrickColor.new("Institutional white")
  150. TextLabel61.BackgroundColor3 = Color3.new(1, 1, 1)
  151. TextLabel61.BackgroundTransparency = 1
  152. TextLabel61.Font = Enum.Font.SourceSansSemibold
  153. TextLabel61.FontSize = Enum.FontSize.Size24
  154. TextLabel61.Text = "K.O.s: 69"
  155. TextLabel61.TextColor = BrickColor.new("Institutional white")
  156. TextLabel61.TextColor3 = Color3.new(1, 1, 1)
  157. TextLabel61.TextSize = 20
  158. TextLabel61.TextStrokeTransparency = 0
  159. TextLabel61.TextWrap = true
  160. TextLabel61.TextWrapped = true
  161. local tween = game:GetService("TweenService")
  162.  
  163. local tweenInfo = TweenInfo.new(
  164. 0.25,
  165. Enum.EasingStyle.Linear,
  166. Enum.EasingDirection.Out
  167. )
  168.  
  169. local tweenInfo1 = TweenInfo.new(
  170. 1,
  171. Enum.EasingStyle.Back,
  172. Enum.EasingDirection.Out
  173. )
  174.  
  175. local tweenInfo2 = TweenInfo.new(
  176. 0.1,
  177. Enum.EasingStyle.Linear,
  178. Enum.EasingDirection.Out
  179. )
  180.  
  181. local d2 = {
  182. Position = UDim2.new(0,0,0.1,0);
  183. Size = UDim2.new(1, 0,0, 80);
  184. }
  185.  
  186. local d1 = {
  187. Position = UDim2.new(0.5, -200,0.5, -150);
  188. Size = UDim2.new(0, 400,0, 300);
  189. ImageTransparency = 0
  190. }
  191.  
  192. local d = {
  193. BackgroundTransparency = 1
  194. }
  195. local tw = tween:Create(Frame11, tweenInfo, d)
  196. local tw1 = tween:Create(ImageLabel21, tweenInfo1, d1)
  197. local tw2 = tween:Create(ImageLabel31, tweenInfo2, d2)
  198. local player = nil
  199. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  200. if v ~= owner then
  201. player = v
  202. end
  203. end
  204. if player == nil then player = owner end
  205. spawn(function()
  206. Sound = Instance.new("Sound")
  207. Sound.Volume = 5
  208. Sound.Looped = true
  209. Sound.Parent = game:GetService("ReplicatedStorage")
  210. Sound.SoundId = "rbxassetid://2893310487"
  211. Sound:Play()
  212. wait(5)
  213. Sound:Destroy()
  214. ScreenGui01.Parent = player.PlayerGui
  215. wait(0.1)
  216. tw:Play()
  217. wait(0.25)
  218. tw1:Play()
  219. wait(0.9)
  220. tw2:Play()
  221. wait(0.2)
  222. Sound = Instance.new("Sound")
  223. Sound.Volume = 5
  224. Sound.Looped = true
  225. Sound.Parent = game:GetService("ReplicatedStorage")
  226. Sound.SoundId = "rbxassetid://2867359113"
  227. Sound:Play()
  228. TextLabel51.Text = player.Name
  229. TextLabel61.Text = "K.O.s: "..math.random(0,99)
  230. Frame41.Visible = true
  231. wait(10)
  232. ScreenGui01:Remove()
  233. end)
  234. end
  235.  
  236. spawn(function()
  237. current = "unknown"
  238. while wait() do
  239. local a = retur()
  240. if a == 1 then
  241. if current ~= "menu" then
  242. current = "menu"
  243. if Sound then
  244. Sound:Destroy()
  245. end
  246. b()
  247. end
  248. elseif a <= 2 then
  249. if current ~= "end" then
  250. print("end")
  251. current = "end"
  252. makeandtween("Remaining: "..a.." player(s)")
  253. makesound(current)
  254. end
  255. elseif a > 2 and a <= 5 then
  256. if current ~= "close" then
  257. print("close")
  258. current = "close"
  259. makeandtween("Remaining: "..a.." player(s)")
  260. makesound(current)
  261. end
  262. elseif a > 5 then
  263. if current ~= "start" then
  264. print("start")
  265. current = "start"
  266. makeandtween("Remaining: "..a.." player(s)")
  267. makesound(current)
  268. end
  269. end
  270. end
  271. end)
Add Comment
Please, Sign In to add comment