Advertisement
toonrun123

Break wait() script

Nov 29th, 2020 (edited)
468
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.36 KB | None | 0 0
  1. --Delay Wait().
  2.  
  3. local ScreenGui = Instance.new("ScreenGui")
  4. local Frame = Instance.new("Frame")
  5. local Frame_2 = Instance.new("Frame")
  6. local gg = Instance.new("TextLabel")
  7. local h = Instance.new("TextLabel")
  8. local h_2 = Instance.new("TextLabel")
  9. local TextButton = Instance.new("TextButton")
  10. local TextBox = Instance.new("TextBox")
  11. local UICorner = Instance.new("UICorner")
  12. local TextButtoni = Instance.new("TextButton")
  13. local UICorner_2 = Instance.new("UICorner")
  14. local TextButtono = Instance.new("TextButton")
  15. local UICorner_3 = Instance.new("UICorner")
  16. local ga = Instance.new("TextLabel")
  17.  
  18. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  19. ScreenGui.ResetOnSpawn = false
  20.  
  21. Frame.Parent = ScreenGui
  22. Frame.BackgroundColor3 = Color3.fromRGB(170, 0, 0)
  23. Frame.BorderSizePixel = 0
  24. Frame.Position = UDim2.new(0.148873657, 0, 0.264094949, 0)
  25. Frame.Size = UDim2.new(0, 717, 0, 317)
  26. Frame.Active = true
  27. Frame.Selectable = true
  28. Frame.Draggable = true
  29.  
  30. Frame_2.Parent = Frame
  31. Frame_2.BackgroundColor3 = Color3.fromRGB(104, 0, 0)
  32. Frame_2.BorderSizePixel = 0
  33. Frame_2.Position = UDim2.new(-0.000359230617, 0, -0.000889341929, 0)
  34. Frame_2.Size = UDim2.new(0, 717, 0, 52)
  35.  
  36. gg.Name = "gg"
  37. gg.Parent = Frame
  38. gg.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  39. gg.BackgroundTransparency = 1.000
  40. gg.Position = UDim2.new(0.0167363882, 0, 0.359621465, 0)
  41. gg.Size = UDim2.new(0, 262, 0, 41)
  42. gg.Font = Enum.Font.Highway
  43. gg.Text = "Search: 0 per"
  44. gg.TextColor3 = Color3.fromRGB(255, 255, 255)
  45. gg.TextScaled = true
  46. gg.TextSize = 14.000
  47. gg.TextWrapped = true
  48.  
  49. h.Name = "h"
  50. h.Parent = Frame
  51. h.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  52. h.BackgroundTransparency = 1.000
  53. h.Position = UDim2.new(0.0167363733, 0, 0.201892734, 0)
  54. h.Size = UDim2.new(0, 262, 0, 41)
  55. h.Font = Enum.Font.Highway
  56. h.Text = "Wait:0"
  57. h.TextColor3 = Color3.fromRGB(255, 255, 255)
  58. h.TextSize = 30.000
  59. h.TextWrapped = true
  60.  
  61. h_2.Name = "h"
  62. h_2.Parent = Frame
  63. h_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  64. h_2.BackgroundTransparency = 1.000
  65. h_2.Position = UDim2.new(-1.87428668e-08, 0, 0.791798115, 0)
  66. h_2.Size = UDim2.new(0, 83, 0, 32)
  67. h_2.Font = Enum.Font.JosefinSans
  68. h_2.Text = "Thread:"
  69. h_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  70. h_2.TextScaled = true
  71. h_2.TextSize = 14.000
  72. h_2.TextWrapped = true
  73.  
  74. TextButton.Parent = Frame
  75. TextButton.BackgroundColor3 = Color3.fromRGB(115, 0, 0)
  76. TextButton.BorderColor3 = Color3.fromRGB(36, 0, 0)
  77. TextButton.BorderSizePixel = 2
  78. TextButton.Position = UDim2.new(0.29567641, 0, 0.788643539, 0)
  79. TextButton.Size = UDim2.new(0, 100, 0, 32)
  80. TextButton.Font = Enum.Font.Sarpanch
  81. TextButton.Text = "Apply"
  82. TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  83. TextButton.TextScaled = true
  84. TextButton.TextSize = 14.000
  85. TextButton.TextWrapped = true
  86.  
  87. TextBox.Parent = Frame
  88. TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  89. TextBox.BackgroundTransparency = 0.500
  90. TextBox.Position = UDim2.new(0.169191733, 0, 0.791044533, 0)
  91. TextBox.Size = UDim2.new(0, 80, 0, 32)
  92. TextBox.Font = Enum.Font.SourceSans
  93. TextBox.Text = "1"
  94. TextBox.TextColor3 = Color3.fromRGB(0, 0, 0)
  95. TextBox.TextSize = 14.000
  96.  
  97. UICorner.Parent = TextBox
  98.  
  99. TextButtoni.Name = "TextButtoni"
  100. TextButtoni.Parent = Frame
  101. TextButtoni.BackgroundColor3 = Color3.fromRGB(236, 74, 74)
  102. TextButtoni.Position = UDim2.new(0.715481162, 0, 0.889589906, 0)
  103. TextButtoni.Size = UDim2.new(0, 100, 0, 32)
  104. TextButtoni.Font = Enum.Font.RobotoMono
  105. TextButtoni.Text = "Force Stop"
  106. TextButtoni.TextColor3 = Color3.fromRGB(255, 255, 255)
  107. TextButtoni.TextScaled = true
  108. TextButtoni.TextSize = 14.000
  109. TextButtoni.TextWrapped = true
  110.  
  111. UICorner_2.Parent = TextButtoni
  112.  
  113. TextButtono.Name = "TextButtono"
  114. TextButtono.Parent = Frame
  115. TextButtono.BackgroundColor3 = Color3.fromRGB(236, 74, 74)
  116. TextButtono.Position = UDim2.new(0.860530019, 0, 0.889589906, 0)
  117. TextButtono.Size = UDim2.new(0, 100, 0, 32)
  118. TextButtono.Font = Enum.Font.RobotoMono
  119. TextButtono.Text = "Force Start"
  120. TextButtono.TextColor3 = Color3.fromRGB(255, 255, 255)
  121. TextButtono.TextScaled = true
  122. TextButtono.TextSize = 14.000
  123. TextButtono.TextWrapped = true
  124.  
  125. UICorner_3.Parent = TextButtono
  126.  
  127. ga.Name = "ga"
  128. ga.Parent = Frame
  129. ga.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  130. ga.BackgroundTransparency = 1.000
  131. ga.Position = UDim2.new(0.316596925, 0, 0.0157728791, 0)
  132. ga.Size = UDim2.new(0, 262, 0, 41)
  133. ga.Font = Enum.Font.Highway
  134. ga.Text = "Thread Destroyer"
  135. ga.TextColor3 = Color3.fromRGB(255, 255, 255)
  136. ga.TextScaled = true
  137. ga.TextSize = 14.000
  138. ga.TextWrapped = true
  139.  
  140. _G.Start = true
  141.  
  142. local thread = 0
  143.  
  144. local cpu = 0
  145. local ooga = Instance.new("NumberValue",workspace)
  146. local heart = 0
  147. local valuea = 1
  148.  
  149. spawn(function()
  150.     while true do
  151.         wait()
  152.         local repartimte = 0
  153.         repartimte = 0
  154.         repeat
  155.             repartimte = repartimte +1
  156.             spawn(function()
  157.                 if _G.Start == true then
  158.                     thread = thread +1
  159.                     local a = wait()
  160.  
  161.                     heart = a
  162.                     h.Text =  "Wait:"..tostring(tostring(heart))
  163.                 end
  164.             end)
  165.         until  repartimte >= tonumber(valuea) or _G.Start == false
  166.     end
  167. end)
  168.  
  169. spawn(function()
  170.     while true do
  171.         thread = 0
  172.         wait(1)
  173.         gg.Text = "Running:"..thread.." per/sec"
  174.     end
  175. end)
  176.  
  177. TextButton.MouseButton1Click:Connect(function()
  178.     valuea = TextBox.Text
  179. end)
  180.  
  181. TextButtoni.MouseButton1Click:Connect(function()
  182.     _G.Start = false
  183. end)
  184.  
  185. TextButtono.MouseButton1Click:Connect(function()
  186.     _G.Start = true
  187. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement