KenshiOfficial

Hoopz script

Nov 4th, 2023
3,381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.45 KB | None | 0 0
  1. -- vSam's Hub
  2.  
  3. local library = loadstring(game:HttpGet(('https://raw.githubusercontent.com/bloodball/-back-ups-for-libs/main/wall%20v3')))()
  4.  
  5. local w = library:CreateWindow("vSam's Hub")
  6.  
  7. local b = w:CreateFolder("Main")
  8.  
  9. b:Toggle("Aimbot",function(bool)
  10. _G.aimToggle = bool
  11. spawn(function()
  12. if _G.aimToggle == false then
  13. game:GetService("Players").LocalPlayer.PlayerGui:WaitForChild("AimbotGui"):Destroy()
  14. for i,v in pairs(game:GetService("Players").LocalPlayer.PlayerGui:GetChildren()) do
  15. if v.Name == "AimbotGui" then
  16. v:Destroy()
  17. end
  18. end
  19. elseif _G.aimToggle == true then
  20.  
  21. local AimbotGui = Instance.new("ScreenGui")
  22. local AimbotFrame = Instance.new("Frame")
  23. local RangeText = Instance.new("TextLabel")
  24. local Basketball = game:GetService("Players").LocalPlayer.Character:WaitForChild("Basketball")
  25.  
  26.  
  27. AimbotGui.Name = "AimbotGui"
  28. AimbotGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  29. AimbotGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  30.  
  31. AimbotFrame.Name = "AimbotFrame"
  32. AimbotFrame.Parent = AimbotGui
  33. AimbotFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  34. AimbotFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  35. AimbotFrame.Position = UDim2.new(0.389353633, 0, 0, 0)
  36. AimbotFrame.Size = UDim2.new(0, 290, 0, 45)
  37.  
  38. RangeText.Name = "RangeText"
  39. RangeText.Parent = AimbotFrame
  40. RangeText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  41. RangeText.BackgroundTransparency = 1.000
  42. RangeText.BorderColor3 = Color3.fromRGB(0, 0, 0)
  43. RangeText.Position = UDim2.new(0, 0, -0.111111283, 0)
  44. RangeText.Size = UDim2.new(0, 290, 0, 50)
  45. RangeText.Font = Enum.Font.SourceSans
  46. RangeText.Text = "Out Of Range"
  47. RangeText.TextColor3 = Color3.fromRGB(255, 0, 0)
  48. RangeText.TextSize = 40.000
  49. RangeText.TextWrapped = true
  50. end
  51. end)
  52. end)
  53.  
  54.  
  55. spawn(function()
  56.  
  57. -- Variables
  58.  
  59. local Mouse = game:GetService("Players").LocalPlayer:GetMouse()
  60. local UIS = game:GetService("UserInputService")
  61. local VIM = game:GetService("VirtualInputManager")
  62. local camera = game:GetService("Workspace").CurrentCamera
  63. local cameraMode = game:GetService("Players").LocalPlayer.CameraMode
  64.  
  65. -- Gets Closest Hoop
  66.  
  67. function getClosest()
  68. local closestDistance = math.huge
  69. local closestRim = nil
  70. for i,v in pairs(game:GetService("Workspace").Courts:GetDescendants()) do
  71. if v.Name == "hoop" then
  72. local distance = (game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - v.Position).magnitude
  73. if distance < closestDistance then
  74. closestDistance = distance
  75. closestRim = v
  76. end
  77. end
  78. end
  79. return closestRim
  80. end
  81.  
  82.  
  83.  
  84.  
  85.  
  86. -- Opens And Closes Gui When Player Has/ Has Not Got The Ball
  87.  
  88. spawn(function()
  89. while wait() do
  90. game:GetService("Players").LocalPlayer.Character:WaitForChild("Basketball")
  91. game:GetService("Players").LocalPlayer.PlayerGui:WaitForChild("AimbotGui").AimbotFrame.Visible = true
  92. repeat wait() until game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Tool") == nil
  93. game:GetService("Players").LocalPlayer.PlayerGui:WaitForChild("AimbotGui").AimbotFrame.Visible = false
  94. end
  95. end)
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105. -- In Range And Out Of Range
  106.  
  107. spawn(function()
  108. while wait() do
  109. local playerAndHoopDistance = (game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - getClosest().Position).magnitude
  110. if playerAndHoopDistance <= 74 then
  111. game:GetService("Players").LocalPlayer.PlayerGui:WaitForChild("AimbotGui").AimbotFrame.RangeText.Text = "In Range"
  112. game:GetService("Players").LocalPlayer.PlayerGui:WaitForChild("AimbotGui").AimbotFrame.RangeText.TextColor3 = Color3.new(0, 255, 0)
  113. elseif playerAndHoopDistance > 74 then
  114. game:GetService("Players").LocalPlayer.PlayerGui:WaitForChild("AimbotGui").AimbotFrame.RangeText.Text = "Out Of Range"
  115. game:GetService("Players").LocalPlayer.PlayerGui:WaitForChild("AimbotGui").AimbotFrame.RangeText.TextColor3 = Color3.new(255, 0, 0)
  116. end
  117. end
  118. end)
  119.  
  120.  
  121. -- Power Adjustment
  122.  
  123. function getClosest()
  124. local closestDistance = math.huge
  125. local closestRim = nil
  126. for i,v in pairs(game:GetService("Workspace").Courts:GetDescendants()) do
  127. if v.Name == "hoop" then
  128. local distance = (game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - v.Position).magnitude
  129. if distance < closestDistance then
  130. closestDistance = distance
  131. closestRim = v
  132. end
  133. end
  134. end
  135. return closestRim
  136. end
  137.  
  138.  
  139.  
  140. spawn(function()
  141. while wait() do
  142. if _G.aim and _G.aimToggle then
  143. local power = game:GetService("Players").LocalPlayer.Power
  144. local playerAndHoopDistance2 = (game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - getClosest().Position).magnitude
  145. if playerAndHoopDistance2 <= 74 and playerAndHoopDistance2 > 63.5 then
  146. power.Value = 85
  147. elseif playerAndHoopDistance2 <= 63.5 and playerAndHoopDistance2 > 47.45 then
  148. power.Value = 80
  149. elseif playerAndHoopDistance2 <= 47.45 then
  150. power.Value = 75
  151. if _G.aim == false then return end
  152. end
  153. end
  154. end
  155. end)
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167. -- The Aimbot
  168.  
  169. UIS.InputBegan:Connect(function(inp)
  170. if inp.KeyCode == Enum.KeyCode.Space and game:GetService("Players").LocalPlayer.PlayerGui:FindFirstChild("AimbotGui").AimbotFrame.RangeText.Text == "In Range" then
  171. if game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Tool") and game:GetService("Players").LocalPlayer.Character.Humanoid.Jump then
  172. if _G.aimToggle then
  173. _G.aim = true
  174. spawn(function()
  175. local ping = game:GetService("Players").LocalPlayer.Ping
  176. if ping.Value <= 83 then
  177. wait(0.195)
  178. VIM:SendMouseButtonEvent(Mouse.X, Mouse.Y, 0, true, game, 1)
  179. VIM:SendMouseButtonEvent(Mouse.X, Mouse.Y, 0, false, game, 1)
  180. elseif ping.Value >= 83 and ping.Value <= 120 then
  181. wait(0.155)
  182. VIM:SendMouseButtonEvent(Mouse.X, Mouse.Y, 0, true, game, 1)
  183. VIM:SendMouseButtonEvent(Mouse.X, Mouse.Y, 0, false, game, 1)
  184. elseif ping.Value >= 120 then
  185. wait(0.125)
  186. VIM:SendMouseButtonEvent(Mouse.X, Mouse.Y, 0, true, game, 1)
  187. VIM:SendMouseButtonEvent(Mouse.X, Mouse.Y, 0, false, game, 1)
  188. end
  189. end)
  190. while wait() do
  191. local playerAndHoopDistance3 = (game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - getClosest().Position).magnitude
  192. if playerAndHoopDistance3 <= 61.999999 and playerAndHoopDistance3 >= 59 then
  193. camera.CFrame = CFrame.new(camera.CFrame.Position, getClosest().Position + Vector3.new(0, 60, 0))
  194. if _G.aim == false then return end
  195. elseif playerAndHoopDistance3 <= 47.2 and playerAndHoopDistance3 >= 39 then
  196. camera.CFrame = CFrame.new(camera.CFrame.Position, getClosest().Position + Vector3.new(0, 65, 0))
  197. if _G.aim == false then return end
  198. elseif playerAndHoopDistance3 <= 49.1 and playerAndHoopDistance3 >= 47.2 then
  199. camera.CFrame = CFrame.new(camera.CFrame.Position, getClosest().Position + Vector3.new(0, 75, 0))
  200. if _G.aim == false then return end
  201. elseif playerAndHoopDistance3 <= 58.999999 and playerAndHoopDistance3 >= 55 then
  202. camera.CFrame = CFrame.new(camera.CFrame.Position, getClosest().Position + Vector3.new(0, 65, 0))
  203. if _G.aim == false then return end
  204. elseif playerAndHoopDistance3 <= 74 and playerAndHoopDistance3 >= 71 then
  205. camera.CFrame = CFrame.new(camera.CFrame.Position, getClosest().Position + Vector3.new(0, 50, 0))
  206. if _G.aim == false then return end
  207. elseif playerAndHoopDistance3 <= 71 and playerAndHoopDistance3 >= 68 then
  208. camera.CFrame = CFrame.new(camera.CFrame.Position, getClosest().Position + Vector3.new(0, 60, 0))
  209. if _G.aim == false then return end
  210. elseif playerAndHoopDistance3 <= 68 and playerAndHoopDistance3 >= 66 then
  211. camera.CFrame = CFrame.new(camera.CFrame.Position, getClosest().Position + Vector3.new(0, 65, 0))
  212. if _G.aim == false then return end
  213. elseif playerAndHoopDistance3 <= 63.3 and playerAndHoopDistance3 >= 62 then
  214. camera.CFrame = CFrame.new(camera.CFrame.Position, getClosest().Position + Vector3.new(0, 55, 0))
  215. if _G.aim == false then return end
  216. elseif playerAndHoopDistance3 <= 63.65 and playerAndHoopDistance3 >= 63.3 then
  217. camera.CFrame = CFrame.new(camera.CFrame.Position, getClosest().Position + Vector3.new(0, 72.5, 0))
  218. if _G.aim == false then return end
  219. else
  220. camera.CFrame = CFrame.new(camera.CFrame.Position, getClosest().Position + Vector3.new(0, 70, 0))
  221. if _G.aim == false then return end
  222. end
  223. end
  224. end
  225. end
  226. end
  227. end)
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236. -- The Aimbot
  237.  
  238. UIS.InputEnded:Connect(function(inp)
  239. if inp.KeyCode == Enum.KeyCode.Space then
  240. _G.aim = false
  241. end
  242. end)
  243.  
  244. -- Locking FirstPerson
  245.  
  246. spawn(function()
  247. while wait() do
  248. if _G.aim == true then
  249. game:GetService("Players").LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson
  250. wait(0.2)
  251. game:GetService("Players").LocalPlayer.CameraMode = Enum.CameraMode.Classic
  252. end
  253. end
  254. end)
  255. end)
  256.  
  257. b:Toggle("Silent Aim",function(bool)
  258. _G.silentAim = bool
  259. end)
  260.  
  261. b:Toggle("Reach",function(bool)
  262.  
  263. _G.ReachPlayer = bool
  264.  
  265. function getNearestPart(torso)
  266. local dist, part = 9e9
  267. for i,v in pairs(game:GetService("Players").LocalPlayer.Character:GetChildren()) do
  268. if v:IsA("Part") and torso then
  269. local mag = (v.Position - torso.Position).Magnitude
  270. if dist > mag then
  271. dist = mag
  272. part = v
  273. end
  274. end
  275. end
  276. return part
  277. end
  278.  
  279.  
  280.  
  281. function findClosestPlayerWithBall()
  282. local closestPlayerWithBasketball = nil
  283. local closestDistance = math.huge
  284. for i,v in pairs(game:GetService("Players"):GetChildren()) do
  285. if v.Name ~= game:GetService("Players").LocalPlayer.Name and v.Character:FindFirstChildOfClass("Tool") then
  286. local distance = (game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - v.Character.HumanoidRootPart.Position).magnitude
  287. if distance < closestDistance then
  288. closestDistance = distance
  289. closestPlayerWithBasketball = v
  290. end
  291. end
  292. end
  293. return closestPlayerWithBasketball
  294. end
  295. end)
  296.  
  297. spawn(function()
  298. local RunService = game:GetService("RunService")
  299. RunService.RenderStepped:Connect(function()
  300. if _G.ReachPlayer and not game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Tool") and (game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - findClosestPlayerWithBall().Character.HumanoidRootPart.Position).magnitude <= 10 then
  301. firetouchinterest(getNearestPart(findClosestPlayerWithBall().Character.Torso), findClosestPlayerWithBall().Character.Basketball.Ball, 0)
  302. firetouchinterest(getNearestPart(findClosestPlayerWithBall().Character.Torso), findClosestPlayerWithBall().Character.Basketball.Ball, 1)
  303. end
  304. end)
  305. end)
  306.  
  307.  
  308. _G.magRange = 25
  309.  
  310. b:Toggle("Ball Mag",function(bool)
  311.  
  312. -- Ball Mag
  313.  
  314. _G.mag = bool
  315.  
  316. function getClosestBasketball()
  317. local closestDistance = math.huge
  318. local closestBasketball = nil
  319. for i,v in pairs(game:GetService("Workspace"):GetChildren()) do
  320. if v.Name == "Basketball" then
  321. local distance = (game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - v.Ball.Position).magnitude
  322. if distance < closestDistance then
  323. closestDistance = distance
  324. closestBasketball = v.Ball
  325. end
  326. end
  327. end
  328. return closestBasketball
  329. end
  330.  
  331.  
  332. spawn(function()
  333. while _G.mag == true do
  334. wait()
  335. if (game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - getClosestBasketball().Position).magnitude <= _G.magRange then
  336. wait()
  337. firetouchinterest(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart, getClosestBasketball(), 0)
  338. wait(0.001)
  339. firetouchinterest(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart, getClosestBasketball(), 1)
  340. if _G.mag == false then return end
  341. end
  342. end
  343. end)
  344. end)
  345.  
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352.  
  353. b:Slider("Ball Mag Range",{
  354. min = 0; -- min value of the slider
  355. max = 25; -- max value of the slider
  356. precise = true; -- max 2 decimals
  357. },function(value)
  358. _G.magRange = value
  359. end)
  360.  
  361.  
  362.  
  363. b:Bind("Auto Guard",Enum.KeyCode.X,function()
  364.  
  365.  
  366. function findClosestPlayer()
  367. closestPlayer2 = nil
  368. closestDistance2 = math.huge
  369. for i,v in pairs(game:GetService("Players"):GetChildren()) do
  370. if v ~= game:GetService("Players").LocalPlayer then
  371. local distance2 = (game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - v.Character.HumanoidRootPart.Position).magnitude
  372. if distance2 < closestDistance2 then
  373. closestDistance2 = distance2
  374. closestPlayer2 = v
  375. end
  376. end
  377. end
  378. return closestPlayer2
  379. end
  380.  
  381. if (game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - findClosestPlayer().Character.HumanoidRootPart.Position).magnitude <= 30 and findClosestPlayer().Character:FindFirstChildOfClass("Tool") then
  382. game:GetService("Players").LocalPlayer.Character.Humanoid.AutoRotate = false
  383. spawn(function()
  384. while wait() do
  385. game:GetService("Players").LocalPlayer.Character.Humanoid.WalkToPoint = findClosestPlayer().Character["HumanoidRootPart"].Position + Vector3.new(findClosestPlayer().Character.Humanoid.MoveDirection.X * 4, findClosestPlayer().Character.Humanoid.MoveDirection.Y, findClosestPlayer().Character.Humanoid.MoveDirection.Z * 5.5)
  386. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.lookAt(game.Players.LocalPlayer.Character.HumanoidRootPart.Position, Vector3.new(findClosestPlayer().Character.HumanoidRootPart.Position.X, game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position.Y, findClosestPlayer().Character.HumanoidRootPart.Position.Z))
  387. if not findClosestPlayer().Character:FindFirstChildOfClass("Tool") then
  388. game:GetService("Players").LocalPlayer.Character.Humanoid.AutoRotate = true
  389. return end
  390. end
  391. end)
  392. end
  393. end)
  394.  
  395.  
  396. b:Toggle("Auto Dunk",function(bool)
  397. _G.autoDunk = bool
  398.  
  399. function getCourt()
  400. local closestDistance = math.huge
  401. local closestCourt = nil
  402. for i,v in pairs(game:GetService("Workspace").Courts:GetDescendants()) do
  403. if v.Name == "CourtFloor" then
  404. local distance = (game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - v.Position).magnitude
  405. if distance < closestDistance then
  406. closestDistance = distance
  407. closestCourt = v
  408. end
  409. end
  410. end
  411. return closestCourt.Parent.Parent.Parent
  412. end
  413.  
  414.  
  415. function getClosest()
  416. local closestDistance = math.huge
  417. local closestRim = nil
  418. for i,v in pairs(game:GetService("Workspace").Courts:GetDescendants()) do
  419. if v.Name == "hoop" then
  420. local distance = (game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - v.Position).magnitude
  421. if distance < closestDistance then
  422. closestDistance = distance
  423. closestRim = v
  424. end
  425. end
  426. end
  427. return closestRim
  428. end
  429.  
  430.  
  431.  
  432. function returnDunkDistance()
  433. local dunkDistance = (game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - getClosest().Position).magnitude
  434. return dunkDistance
  435. end
  436.  
  437. spawn(function()
  438. while _G.autoDunk do
  439. wait()
  440. if returnDunkDistance() <= 28 then
  441. local args = {
  442. [1] = game:GetService("Players").LocalPlayer.Character:WaitForChild("Basketball")
  443. }
  444.  
  445. getCourt().FieldGoal.dunkFunction:InvokeServer(unpack(args))
  446. if _G.autoDunk == false then return end
  447. end
  448. end
  449. end)
  450. end)
  451.  
  452.  
  453.  
  454. b:Toggle("Anti Travel",function(bool)
  455.  
  456. local mt = getrawmetatable(game)
  457. local namecall = mt.__namecall
  458. setreadonly(mt,false)
  459. mt.__namecall = function(self,...)
  460. local args = {...}
  461. local method = getnamecallmethod()
  462.  
  463. if tostring(self) == "shootingEvent" and method == "FireServer" and args[1] == "xd" then
  464. if bool == false then
  465. args[1] = "xd"
  466. return self.FireServer(self, unpack(args))
  467. elseif bool == true then
  468. return;
  469. end
  470. end
  471. return namecall(self,...)
  472. end
  473. end)
  474.  
  475. b:Toggle("Anti Fall",function(bool)
  476. _G.antiFall = bool
  477. end)
  478.  
  479. spawn(function()
  480. game:GetService("Players").LocalPlayer.Character.Humanoid:GetPropertyChangedSignal('PlatformStand'):Connect(function()
  481. if game:GetService("Players").LocalPlayer.Character.Humanoid.PlatformStand == true and _G.antiFall then
  482. game:GetService("Players").LocalPlayer.Character.Humanoid.PlatformStand = false
  483. game:GetService("Players").LocalPlayer.Character.Humanoid.AutoRotate = true
  484. elseif game:GetService("Players").LocalPlayer.Character.Humanoid.PlatformStand == true and _G.antiFall == false then
  485. return;
  486. end
  487. end)
  488. end)
  489.  
  490.  
  491.  
  492.  
  493. local b = w:CreateFolder("Intros")
  494.  
  495.  
  496. b:Dropdown("Intro Animations",{"Intro_AnthonyShuffle_L","Intro_Backstand_U","Intro_BillieJean_C","Intro_Boo!_L","Intro_BringItOn_U","Intro_CaramellaDance_C","Intro_ChronoSteps_R","Intro_Clap_C","Intro_ComeOn_R","Intro_CleanGroove_C","Intro_Crabby_E","Intro_Cradles_L","Intro_CrissCross_R","Intro_CutePose_C","Intro_Dab2_U","Intro_Dab_C","Intro_Dirty_R","Intro_Default","Intro_DefaultDance_U","Intro_Distraction_E","Intro_ElectroShuffle_L","Intro_ElectroSwing_U","Intro_Dribble_R","Intro_FlapperDance_U","Intro_FrameSkin_R","Intro_Freestyle_R","Intro_GetDown_U","Intro_GoBanana_E","Intro_HandShuffle_R","Intro_Hate_C","Intro_Handstand_C","Intro_Headflips_E","Intro_Hiphop_L","Intro_Headless_C","Intro_JojoGang_E","Intro_JumpingJacks_R","Intro_Kickflip_E","Intro_LDance_U","Intro_Lavish_R","Intro_LeapingDance_C","Intro_LegShake_U","Intro_Levitate_L","Intro_MarioOdyssey_R","Intro_MickyJacky_E","Intro_Mood_L","Intro_NaeNae_L","Intro_OrangeJustice_L","Intro_NanaDance_C","Intro_Roasted_U","Intro_ScoutKick_C","Intro_Poop_E","Intro_PraiseTheLord_R","Intro_Reanimated_L","Intro_Shake&Clap_E","Intro_Separate_U","Intro_ShakeItUp_U","Intro_ShowOff_U","Intro_ShuffleV2_E","Intro_Shuffle_E","Intro_SideHustle_R","Intro_Sit&Sway_C","Intro_SlapDisrespect_U","Intro_Sit_C","Intro_Slick_E","Intro_Smeeze_E","Intro_Springy_R","Intro_SmugDance_U","Intro_Swipe_R","Intro_Thriller_R","Intro_TrashCompacter_U","Intro_Wave_C","Intro_WhipIt_E","Intro_Wiggle_C","Intro_Zany_R"},true,function(mob) --true/false, replaces the current title "Dropdown" with the option that t
  497. game:GetService("Players").LocalPlayer.Equipping.Intro.Value = mob
  498. end)
  499.  
  500.  
  501.  
  502.  
  503. local b = w:CreateFolder("Dunks")
  504.  
  505. b:Dropdown("Dunk Animations",{"Dunk_1HClutchReverse_L","Dunk_2HWindmill_U","Dunk_360BTL_R","Dunk_360Scoop_E","Dunk_360MailMan_L","Dunk_360Pump_E","Dunk_360Windmill_Special","Dunk_360_R","Dunk_BTB2HReverse_E","Dunk_BTBScorpion_E","Dunk_BTB_U","Dunk_BTLReverse2H_Special","Dunk_BTLBTB_E","Dunk_Backscratcher_C","Dunk_BTL_R","Dunk_Cradle_E","Dunk_CuffCradle_E","Dunk_Default","Dunk_DoubleBTL_E","Dunk_FakeBTB_Special","Dunk_FakeBTL_Special","Dunk_FrontClutch_C","Dunk_Inverter_Special","Dunk_LostAndFound_Special","Dunk_MJ_L","Dunk_MailMan_U","Dunk_PumpReverse_R","Dunk_Pendulum_R","Dunk_Reverse2HWindmill_U","Dunk_Reverse360BTB2H_Special","Dunk_Reverse360BTL_E","Dunk_Reverse360BTB_E","Dunk_Scorpion2_R","Dunk_Reverse_C","Dunk_Scorpion_R","Dunk_Switcheroo_C","Dunk_UberTomahawk_U","Dunk_Tomahawk_C","Dunk_UnderTheLegs_R","Dunk_VinceCarter360_E","Dunk_Windmill_U"},true,function(mob) --true/false, replaces the current title "Dropdown" with the option that t
  506. game:GetService("Players").LocalPlayer.Equipping.Dunk.Value = mob
  507. game:GetService("Players").LocalPlayer.Equipping.Dunk2.Value = mob
  508. game:GetService("Players").LocalPlayer.Equipping.Dunk3.Value = mob
  509. end)
  510.  
  511.  
  512.  
  513.  
  514. local b = w:CreateFolder("Character")
  515.  
  516.  
  517.  
  518.  
  519. b:Slider("WalkSpeed",{
  520. min = 16;
  521. max = 19;
  522. precise = true;
  523. },function(value)
  524. _G.Speed = value
  525. for i,v in pairs(getconnections(game:GetService("Players").LocalPlayer.Character:WaitForChild("Humanoid"):GetPropertyChangedSignal("WalkSpeed"))) do
  526. v:Disable()
  527. end
  528. while wait() do
  529. if game:GetService("Players").LocalPlayer.Character:WaitForChild("Humanoid").WalkSpeed ~= 0 then
  530. game:GetService("Players").LocalPlayer.Character:WaitForChild("Humanoid").WalkSpeed = _G.Speed
  531. end
  532. end
  533. end)
  534.  
  535.  
  536.  
  537.  
  538. b:Slider("JumpPower",{
  539. min = 50;
  540. max = 60;
  541. precise = true;
  542. },function(value)
  543. function getJumpPower()
  544. return value
  545. end
  546. while wait() do
  547. game:GetService("Players").LocalPlayer.Character.Humanoid.JumpPower = getJumpPower()
  548. end
  549. end)
  550.  
  551.  
  552. b:Slider("Hip Height",{
  553. min = 0; -- min value of the slider
  554. max = 3; -- max value of the slider
  555. precise = true; -- max 2 decimals
  556. },function(value)
  557. game:GetService("Players").LocalPlayer.Character.Humanoid.HipHeight = value
  558. end)
  559.  
  560.  
  561.  
  562. b:Button("Reset",function()
  563. game:GetService("Players").LocalPlayer.Character.Humanoid.Health = 0
  564. end)
  565.  
  566. local b = w:CreateFolder("Server Options")
  567.  
  568. b:Button("New Server",function()
  569. local PlaceID = game.PlaceId
  570. local AllIDs = {}
  571. local foundAnything = ""
  572. local actualHour = os.date("!*t").hour
  573. local Deleted = false
  574. local File = pcall(function()
  575. AllIDs = game:GetService('HttpService'):JSONDecode(readfile("NotSameServers.json"))
  576. end)
  577. if not File then
  578. table.insert(AllIDs, actualHour)
  579. writefile("NotSameServers.json", game:GetService('HttpService'):JSONEncode(AllIDs))
  580. end
  581. function TPReturner()
  582. local Site;
  583. if foundAnything == "" then
  584. Site = game.HttpService:JSONDecode(game:HttpGet('https://games.roblox.com/v1/games/' .. PlaceID .. '/servers/Public?sortOrder=Asc&limit=100'))
  585. else
  586. Site = game.HttpService:JSONDecode(game:HttpGet('https://games.roblox.com/v1/games/' .. PlaceID .. '/servers/Public?sortOrder=Asc&limit=100&cursor=' .. foundAnything))
  587. end
  588. local ID = ""
  589. if Site.nextPageCursor and Site.nextPageCursor ~= "null" and Site.nextPageCursor ~= nil then
  590. foundAnything = Site.nextPageCursor
  591. end
  592. local num = 0;
  593. for i,v in pairs(Site.data) do
  594. local Possible = true
  595. ID = tostring(v.id)
  596. if tonumber(v.maxPlayers) > tonumber(v.playing) then
  597. for _,Existing in pairs(AllIDs) do
  598. if num ~= 0 then
  599. if ID == tostring(Existing) then
  600. Possible = false
  601. end
  602. else
  603. if tonumber(actualHour) ~= tonumber(Existing) then
  604. local delFile = pcall(function()
  605. delfile("NotSameServers.json")
  606. AllIDs = {}
  607. table.insert(AllIDs, actualHour)
  608. end)
  609. end
  610. end
  611. num = num + 1
  612. end
  613. if Possible == true then
  614. table.insert(AllIDs, ID)
  615. wait()
  616. pcall(function()
  617. writefile("NotSameServers.json", game:GetService('HttpService'):JSONEncode(AllIDs))
  618. wait()
  619. game:GetService("TeleportService"):TeleportToPlaceInstance(PlaceID, ID, game.Players.LocalPlayer)
  620. end)
  621. wait(4)
  622. end
  623. end
  624. end
  625. end
  626.  
  627. function Teleport()
  628. while wait() do
  629. pcall(function()
  630. TPReturner()
  631. if foundAnything ~= "" then
  632. TPReturner()
  633. end
  634. end)
  635. end
  636. end
  637.  
  638. Teleport()
  639. end)
  640.  
  641.  
  642.  
  643. b:Button("Rejoin",function()
  644. repeat
  645. wait()
  646. until game:IsLoaded()
  647. game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId,game.JobId)
  648. end)
  649.  
  650. spawn(function()
  651. local plr = game.Players.LocalPlayer
  652. local uis = game:GetService("UserInputService")
  653.  
  654. local shootingEvent = game:GetService("ReplicatedStorage").shootingEvent
  655.  
  656. if workspace:FindFirstChild("PracticeArea") then
  657. workspace.PracticeArea.Parent = workspace.Courts
  658. end
  659.  
  660. function power()
  661. return plr.Power
  662. end
  663.  
  664. function changePower(goal)
  665. power().Value = goal
  666. end
  667.  
  668. function added(v)
  669. if v.Name == "Basketball" then
  670. task.wait(0.5)
  671. hasBall = true
  672. end
  673. end
  674.  
  675. function removed(v)
  676. if v.Name == "Basketball" then
  677. hasBall = false
  678. end
  679. end
  680.  
  681. local jumping = false
  682.  
  683. for i,v in pairs(getconnections(game:GetService("UserInputService").TouchTapInWorld)) do
  684. for z,x in pairs(getupvalues(v.Function)) do
  685. if type(x) == "table" and rawget(x, 1) then
  686. _G.method = x
  687. elseif z == 10 then
  688. _G.key = x
  689. end
  690. end
  691. end
  692.  
  693. shootingEvent.OnClientEvent:Connect(function(newKey)
  694. _G.key = newKey
  695. end)
  696.  
  697. function setup()
  698. local dist, goal = 9e9, nil
  699. for i,v in pairs(workspace.Courts:GetDescendants()) do
  700. if v.Name == "Swish" and v:IsA("Sound") and plr.Character and plr.Character:FindFirstChild("Torso") then
  701. local mag = (plr.Character.Torso.Position - v.Parent.Position).Magnitude
  702. if dist > mag then
  703. dist = mag; goal = v.Parent
  704. end
  705. end
  706. end
  707. return dist, goal
  708. end
  709.  
  710. function power()
  711. return plr.Power
  712. end
  713.  
  714. function table(a, b)
  715. local args = {
  716. X1 = a.X,
  717. Y1 = a.Y,
  718. Z1 = a.Z,
  719. X2 = b.X,
  720. Y2 = b.Y,
  721. Z2 = b.Z
  722. };
  723.  
  724. return {args[_G.method[1]], args[_G.method[2]], args[_G.method[3]], args[_G.method[4]], args[_G.method[5]], args[_G.method[6]]}
  725. end
  726.  
  727. function arc()
  728. local dist, goal = setup()
  729.  
  730. dist = math.floor(dist)
  731. if dist == 12 or dist == 13 then
  732. return 15
  733. elseif dist == 14 or dist == 15 then
  734. return 20
  735. elseif dist == 16 or dist == 17 then
  736. return 15
  737. elseif dist == 18 then
  738. return 25
  739. elseif dist == 19 then
  740. return 20
  741. elseif dist == 20 or dist == 21 then
  742. return 20
  743. elseif dist == 22 or dist == 23 then
  744. return 25
  745. elseif dist == 24 or dist == 25 then
  746. return 20
  747. elseif dist == 26 then
  748. return 15
  749. elseif dist == 27 or dist == 28 then
  750. return 25
  751. elseif dist == 29 or dist == 30 then
  752. return 20
  753. elseif dist == 31 then
  754. return 15
  755. elseif dist == 32 or dist == 33 then
  756. return 30
  757. elseif dist == 34 or dist == 35 or dist == 36 then
  758. return 25
  759. elseif dist == 37 or dist == 38 then
  760. return 35
  761. elseif dist == 39 or dist == 40 then
  762. return 30
  763. elseif dist == 41 then
  764. return 25
  765. elseif dist == 42 or dist == 43 then
  766. return 40
  767. elseif dist == 44 then
  768. return 35
  769. elseif dist == 45 or dist == 46 then
  770. return 30
  771. elseif dist == 47 or dist == 48 then
  772. return 45
  773. elseif dist == 49 then
  774. return 40
  775. elseif dist == 50 then
  776. return 35
  777. elseif dist == 51 then
  778. return 50
  779. elseif dist == 52 then
  780. return 55
  781. elseif dist == 53 or dist == 54 then
  782. return 50
  783. elseif dist == 55 then
  784. return 45
  785. elseif dist == 56 then
  786. return 40
  787. elseif dist == 57 or dist == 58 then
  788. return 55
  789. elseif dist == 59 or dist == 60 or dist == 61 then
  790. return 50
  791. elseif dist == 62 or dist == 63 then
  792. return 65
  793. elseif dist == 64 then
  794. return 55
  795. elseif dist == 65 then
  796. return 60
  797. elseif dist == 66 or dist == 67 then
  798. return 50
  799. elseif dist == 68 or dist == 69 then
  800. return 75
  801. elseif dist == 70 or dist == 71 then
  802. return 70
  803. elseif dist == 72 then
  804. return 65
  805. elseif dist == 73 then
  806. return 60
  807. elseif dist == 74 then
  808. return 50
  809. elseif jumping then
  810. if dist == 9 or dist == 10 then
  811. return 20
  812. elseif dist == 11 or dist == 12 then
  813. return 15
  814. end
  815. end
  816. end
  817.  
  818. function stepped()
  819. if plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") then
  820. local pwr = power()
  821. local dist, goal = setup()
  822. local root = plr.Character.HumanoidRootPart
  823.  
  824. dist = math.floor(dist)
  825.  
  826. if root and hasBall then
  827.  
  828. if dist >= 13 and dist <= 16 then
  829. changePower(30)
  830. elseif dist >= 17 and dist <= 21 then
  831. changePower(35)
  832. elseif dist >= 22 and dist <= 26 then
  833. changePower(40)
  834. elseif dist >= 27 and dist <= 31 then
  835. changePower(45)
  836. elseif dist >= 32 and dist <= 36 then
  837. changePower(50)
  838. elseif dist >= 37 and dist <= 41 then
  839. changePower(55)
  840. elseif dist >= 42 and dist <= 46 then
  841. changePower(60)
  842. elseif dist >= 47 and dist <= 50 then
  843. changePower(65)
  844. elseif dist >= 51 and dist <= 56 then
  845. changePower(70)
  846. elseif dist >= 57 and dist <= 61 then
  847. changePower(75)
  848. elseif dist >= 62 and dist <= 67 then
  849. changePower(80)
  850. elseif dist >= 68 and dist <= 74 then
  851. changePower(85)
  852. elseif jumping and dist == 9 or dist == 10 or dist == 11 or dist == 12 then
  853. changePower(25)
  854. end
  855. end
  856. end
  857. end
  858.  
  859. function stepped2()
  860. if plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") then
  861. local pwr = power()
  862. local dist, goal = setup()
  863. local root = plr.Character.HumanoidRootPart
  864.  
  865. dist = math.floor(dist)
  866.  
  867. if root and hasBall then
  868.  
  869. if dist >= 13 and dist <= 16 then
  870. changePower(35)
  871. elseif dist >= 17 and dist <= 21 then
  872. changePower(40)
  873. elseif dist >= 22 and dist <= 26 then
  874. changePower(45)
  875. elseif dist >= 27 and dist <= 31 then
  876. changePower(50)
  877. elseif dist >= 32 and dist <= 36 then
  878. changePower(55)
  879. elseif dist >= 37 and dist <= 41 then
  880. changePower(60)
  881. elseif dist >= 42 and dist <= 46 then
  882. changePower(65)
  883. elseif dist >= 47 and dist <= 50 then
  884. changePower(70)
  885. elseif dist >= 51 and dist <= 56 then
  886. changePower(75)
  887. elseif dist >= 57 and dist <= 61 then
  888. changePower(80)
  889. elseif dist >= 62 and dist <= 67 then
  890. changePower(85)
  891. elseif jumping and dist == 9 or dist == 10 or dist == 11 or dist == 12 then
  892. changePower(30)
  893. end
  894. end
  895. end
  896. end
  897.  
  898. function shoot()
  899. local dist, goal = setup()
  900. local pwr = power()
  901. local arc = arc()
  902.  
  903. if arc ~= nil and plr.Character and plr.Character:FindFirstChild("Humanoid") then
  904. local args = table(plr.Character.Torso.Position, (goal.Position + Vector3.new(0, arc, 0) - plr.Character.HumanoidRootPart.Position + plr.Character.Humanoid.MoveDirection).Unit)
  905.  
  906. shootingEvent:FireServer(
  907. plr.Character.Basketball,
  908. pwr.Value,
  909. args,
  910. _G.key
  911. )
  912. end
  913. end
  914.  
  915. function shoot2()
  916. local dist, goal = setup()
  917. local pwr = power()
  918. local arc = arc()
  919. local dist, goal = setup()
  920.  
  921. dist = math.floor(dist)
  922.  
  923. if arc ~= nil and dist <= 67 and plr.Character and plr.Character:FindFirstChild("Humanoid") then
  924. local args = table(plr.Character.Torso.Position, (goal.Position + Vector3.new(0, arc, 0) - plr.Character.HumanoidRootPart.Position + plr.Character.Humanoid.MoveDirection).Unit)
  925.  
  926. shootingEvent:FireServer(
  927. plr.Character.Basketball,
  928. pwr.Value,
  929. args,
  930. _G.key
  931. )
  932. end
  933. end
  934.  
  935. function jumped()
  936. if plr.Character and hasBall and plr.Character:FindFirstChild("HumanoidRootPart") and _G.silentAim then
  937. jumping = true
  938. stepped()
  939. task.wait(0.325)
  940. shoot()
  941. task.wait(0.1)
  942. jumping = false
  943. end
  944. end
  945.  
  946.  
  947. uis.InputBegan:Connect(function(inp)
  948. if inp.KeyCode == Enum.KeyCode.X then
  949. stepped2()
  950. task.wait(0.005)
  951. shoot2()
  952. end
  953. end)
  954.  
  955. plr.Character.ChildAdded:Connect(added)
  956. plr.Character.ChildRemoved:Connect(removed)
  957. plr.Character.Humanoid.Jumping:Connect(jumped)
  958. end)
Add Comment
Please, Sign In to add comment