BobMe

AkaClimb

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