Advertisement
BobMe

Untitled

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