Advertisement
BobMe

Untitled

Oct 24th, 2021 (edited)
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.56 KB | None | 0 0
  1. local gui = NP("how",true,1200,700)
  2. local monitor = gui.Parent.Parent.Parent.Parent
  3. local maxboxes = 100
  4. local spawnrate = 3
  5. local falltime = 3
  6. local scroll = 1000
  7. local randomscroll = true
  8. local frame = Instance.new("Frame",gui.OuterFrame)
  9. local tex = Instance.new("TextBox",gui.OuterFrame)
  10. local deathsounds = {7079666421,457541920,7553397015,570433034,3750878860,2826079696}
  11. local sound = Instance.new("Sound",monitor)
  12. sound.SoundId = "rbxassetid://1841465249"
  13. sound.Looped = true
  14. sound:Play()
  15. sound.Volume = 2
  16. sound.Pitch = 0.6
  17. tex.Size = UDim2.new(0,40,0,40)
  18. tex.TextScaled = true
  19. tex.BackgroundTransparency = 1
  20. tex.Text = "0"
  21. tex.ZIndex = gui.ZIndex
  22. gui.ClipsDescendants = true
  23. gui.Position = gui.Position - UDim2.new(0,0,0,130)
  24. frame.Size = UDim2.new(0,10,0,10)
  25. frame.AnchorPoint = Vector2.new(0.5,0.5)
  26. local ground = gui.OuterFrame.AbsoluteSize.Y-5
  27. local cei = 0 + 5
  28. frame.Position = UDim2.new(0,5,0,ground)
  29. frame.ZIndex = gui.ZIndex
  30. frame.BackgroundColor3 = Color3.fromRGB(0,0,0)
  31. frame.BorderSizePixel = 0
  32. gui.OuterFrame.ClipsDescendants = true
  33. Instance.new("BoolValue",gui.OuterFrame).Name = "Button"
  34. Instance.new("BoolValue",gui.OuterFrame).Name = "ButtonDouble"
  35. local speed = 0
  36. local points = 0
  37. local RunService = game:GetService("RunService")
  38. local function AccurateWait(seconds)
  39. if not seconds then
  40. seconds = 0
  41. end
  42. local last = tick()
  43. local secondsPassed = 0
  44. local connection = RunService.Heartbeat:Connect(function(dt)
  45. secondsPassed = secondsPassed + dt
  46. end)
  47. repeat
  48. RunService.Heartbeat:Wait()
  49. until secondsPassed >= seconds
  50. connection:Disconnect()
  51. end
  52. local function jump()
  53. if speed > 0 then speed = speed + 10 else speed = 5 end
  54. end
  55. gui.OuterFrame.Button.Changed:Connect(function(change)
  56. if change == true then
  57. jump()
  58. gui.OuterFrame.Button.Value = false
  59. end
  60. end)
  61. gui.OuterFrame.ButtonDouble.Changed:Connect(function(change)
  62. if change == true then
  63. jump()
  64. gui.OuterFrame.ButtonDouble.Value = false
  65. end
  66. end)
  67. local fat = true
  68. local d = false
  69. local function inframe(gui)
  70. local xp = gui.AbsolutePosition.X
  71. local yp = gui.AbsolutePosition.Y
  72. local xs = gui.AbsoluteSize.X
  73. local ys = gui.AbsoluteSize.Y
  74. local sumx = xp+xs
  75. local sumy = yp+ys
  76. if (frame.AbsolutePosition.X + 5) >= xp and (frame.AbsolutePosition.Y + 5) >= yp and (frame.AbsolutePosition.X + 5) <= sumx and (frame.AbsolutePosition.Y + 5) <= sumy then
  77. return true
  78. else
  79. return false
  80. end
  81. end
  82. local amount = 0
  83. local fold = Instance.new("Folder",gui.OuterFrame)
  84. local count = 0
  85. local function pew()
  86. amount = amount + 1
  87. local cou = count
  88. coroutine.resume(coroutine.create(function()
  89. local fr = Instance.new("Frame",gui:FindFirstChild("OuterFrame"))
  90. if gui ~= nil and fr ~= nil then
  91. fr.Parent = fold
  92. fr.Size = UDim2.new(0,40,0,40)
  93. local scroll = scroll
  94. if randomscroll then
  95. scroll = math.random(-scroll,scroll)
  96. end
  97. local mathh = math.random(0+scroll,gui.OuterFrame.AbsoluteSize.X-40+scroll)
  98. fr.Position = UDim2.new(0,math.floor(mathh),0,-30)
  99. fr.BackgroundColor3 = Color3.fromRGB(255,0,0)
  100. fr.ZIndex = gui.ZIndex
  101. fr.BorderSizePixel = 0
  102. fr:TweenPosition(UDim2.new(0,math.floor(mathh-scroll),0,gui.OuterFrame.AbsoluteSize.Y+1),Enum.EasingDirection.Out,Enum.EasingStyle.Linear,falltime)
  103. wait(falltime)
  104. if fr ~= nil and cou == count then
  105. fr:Destroy()
  106. amount = amount - 1
  107. points = points + 1
  108. tex.Text = tostring(points)
  109. end
  110. end
  111. end))
  112. end
  113. coroutine.resume(coroutine.create(function()
  114. while gui ~= nil and gui.Parent ~= nil do
  115. wait()
  116. for i,fr in pairs(fold:GetChildren()) do
  117. if inframe(fr) then
  118. count = count + 1
  119. frame.Visible = false
  120. fr:Destroy()
  121. amount = amount - 1
  122. end
  123. if frame.Visible == false then
  124. fr:Destroy()
  125. amount = amount -1
  126. end
  127. end
  128. end
  129. end))
  130. pew()
  131. local cred = Instance.new("TextBox",gui.OuterFrame)
  132. cred.ZIndex = gui.ZIndex
  133. cred.AnchorPoint = Vector2.new(0,1)
  134. cred.Position = UDim2.new(0,0,1,0)
  135. cred.Size = UDim2.new(1,0,0,20)
  136. cred.BackgroundTransparency = 1
  137. cred.TextTransparency = 0.5
  138. cred.Text = "By Memo1332"
  139. cred.TextSize = 16
  140. while (gui ~= nil and gui.Parent ~= nil) do
  141. AccurateWait(0.01)
  142. if frame.Visible then
  143. local pos = frame.Position.Y.Offset
  144. sound.Pitch = 0.8+(math.abs(speed)/120)
  145. if gui == nil or gui.Parent == nil then sound:Destroy() end
  146. if cei > pos then
  147. frame.Position = UDim2.new(0,frame.Position.X.Offset,0,cei+5)
  148. speed = -math.abs(speed)/1.5
  149. elseif pos <= ground and speed ~= 0 then
  150. if d then d = not d end
  151. speed = speed - 0.6
  152. frame.Position = UDim2.new(0,frame.Position.X.Offset,0,pos-speed)
  153. elseif pos > ground and speed <= 0 then
  154. speed = math.abs(speed)/1.5
  155. if speed <= 0.6 then
  156. speed = 0
  157. end
  158. frame.Position = UDim2.new(0,frame.Position.X.Offset,0,ground)
  159. elseif ground < pos and speed > 0 then
  160. speed = math.abs(speed)/1.5
  161. if speed <= 0.6 then
  162. speed = 0
  163. end
  164. end
  165. if #fold:GetChildren() < maxboxes then
  166. local mat = math.random(1,spawnrate)
  167. if mat == 1 then
  168. pew()
  169. end
  170. end
  171. if fat then
  172. frame.Position = UDim2.new(0,frame.Position.X.Offset+4,0,frame.Position.Y.Offset)
  173. if frame.Position.X.Offset > gui.OuterFrame.AbsoluteSize.X-5 then
  174. frame.Position = UDim2.new(0,frame.Position.X.Offset-4,0,frame.Position.Y.Offset)
  175. fat = not fat
  176. end
  177. else
  178. frame.Position = UDim2.new(0,frame.Position.X.Offset-4,0,frame.Position.Y.Offset)
  179. if frame.Position.X.Offset < 5 then
  180. frame.Position = UDim2.new(0,frame.Position.X.Offset+4,0,frame.Position.Y.Offset)
  181. fat = not fat
  182. end
  183. end
  184. else
  185. local TweenService = game:GetService("TweenService")
  186. local fr = Instance.new("Frame",gui.OuterFrame)
  187. fr.ZIndex = gui.ZIndex
  188. fr.Size = UDim2.new(1,0,1,0)
  189. fr.BackgroundColor3 = Color3.fromRGB(255,0,0)
  190. fr.BackgroundTransparency = 1
  191. fr.BorderSizePixel = 0
  192. local goal = {}
  193. goal.BackgroundTransparency = 0
  194. local goal2 = {}
  195. goal2.BackgroundTransparency = 1
  196. local tweenInfo = TweenInfo.new(1.5,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)
  197. local tween1 = TweenService:Create(fr,tweenInfo,goal)
  198. local tween2 = TweenService:Create(fr,tweenInfo,goal2)
  199. tween1:Play()
  200. local id = deathsounds[math.random(1,#deathsounds)]
  201. local tim = sound.TimePosition
  202. sound.SoundId = "rbxassetid://"..tostring(id)
  203. sound:Stop()
  204. wait()
  205. sound:Play()
  206. wait(3)
  207. sound.SoundId = "rbxassetid://1841465249"
  208. sound:Play()
  209. sound.TimePosition = tim
  210. tween2:Play()
  211. points = 0
  212. tex.Text = tostring(points)
  213. frame.Position = UDim2.new(0,5,0,ground)
  214. speed = 0
  215. frame.Visible = true
  216. pew()
  217. if gui == nil or gui.Parent == nil then sound:Destroy() end
  218. end
  219. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement