Advertisement
Guest User

Untitled

a guest
Jun 19th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 69.20 KB | None | 0 0
  1. -- params : ...
  2.  
  3. local Player = script.Parent.Parent
  4. local Mouse = Player:GetMouse()
  5. local Remotes = workspace:WaitForChild("Remotes.")
  6. local Animations = (workspace:WaitForChild("Animations."))
  7. local Hoop = nil
  8. repeat
  9. wait()
  10. until Player.Character
  11. local Humanoid = Player.Character:WaitForChild("Zombie")
  12. local RootPart = Player.Character.HumanoidRootPart
  13. wait(1)
  14. local LShooting = Humanoid:LoadAnimation(Animations.LShoot)
  15. local RShooting = Humanoid:LoadAnimation(Animations.RShoot)
  16. local LSprintShot = Humanoid:LoadAnimation(Animations.LSprintShot)
  17. local RSprintShot = Humanoid:LoadAnimation(Animations.RSprintShot)
  18. local LFadeShot = Humanoid:LoadAnimation(Animations.LFadeShoot)
  19. local RFadeShot = Humanoid:LoadAnimation(Animations.RFadeShoot)
  20. local LLayup = Humanoid:LoadAnimation(Animations.LLayup)
  21. local RLayup = Humanoid:LoadAnimation(Animations.RLayup)
  22. local Pushed = Humanoid:LoadAnimation(Animations.Pushed)
  23. local Fall = Humanoid:LoadAnimation(Animations.Fall)
  24. local Screen = Humanoid:LoadAnimation(Animations.Screen)
  25. local Steal = Humanoid:LoadAnimation(Animations.Steal)
  26. local Block = Humanoid:LoadAnimation(Animations.Block)
  27. local PostStop = Humanoid:LoadAnimation(Animations.PostStop)
  28. local PostSpinL = Humanoid:LoadAnimation(Animations.PostSpinL)
  29. local PostSpinR = Humanoid:LoadAnimation(Animations.PostSpinR)
  30. local DropBall = Humanoid:LoadAnimation(Animations.DropBall)
  31. local RegPass = Humanoid:LoadAnimation(Animations.RegPass)
  32. local HighPass = Humanoid:LoadAnimation(Animations.HighPass)
  33. local Dunk = Humanoid:LoadAnimation(Animations.Dunk)
  34. local LegDunk = Humanoid:LoadAnimation(Animations.LegDunk)
  35. local SpinDunk = Humanoid:LoadAnimation(Animations.SpinDunk)
  36. local HoldDunk = Humanoid:LoadAnimation(Animations.HoldDunk)
  37. local HoldLegDunk = Humanoid:LoadAnimation(Animations.HoldLegDunk)
  38. local debounce = true
  39. local shotdebounce = true
  40. local issprinting = false
  41. local shotsprint = false
  42. local ispassing = false
  43. local spindebounce = true
  44. local dropdebounce = true
  45. local madedunk = false
  46. local wasposting = false
  47. local combo = false
  48. local current = ""
  49. local run = "0"
  50. local shoot = "e"
  51. local handle = "h"
  52. local guard = "g"
  53. local steal = "r"
  54. local post = "z"
  55. local block = "b"
  56. local screen = "t"
  57. local dropball = "p"
  58. local dunk = "f"
  59. local spindunk = "g"
  60. local poststop = "x"
  61. local postspinleft = "c"
  62. local postspinright = "v"
  63. local pass = "q"
  64. local faceway = ""
  65. local holder = "m"
  66. local fallspeed = -8
  67. local pushedspeed = -5
  68. local spinspeed = 9
  69. local fadespeed = -3.5
  70. local layupspeed = 12
  71. local postspeed = 4.5
  72. local poststopspeed = -9
  73. local dunkspeed = 13
  74. local layuptime = 0.15
  75. local fadetime = 0.21
  76. local shottime = 0.19
  77. local spintime = 0.18
  78. local droptime = 0.15
  79. local dunktime = 0.33
  80. local shotY = 24
  81. local layupY = 16
  82. local fadeY = 14
  83. local shottimes = {0.55, 0.6, 0.65}
  84. local fadetimes = {0.65, 0.7, 0.75}
  85. local layuptimes = {0.45, 0.5, 0.55}
  86. playanim = function(anim)
  87. anim:Play()
  88. end
  89.  
  90. stopanim = function(anim)
  91. anim:Stop()
  92. end
  93.  
  94. lookat = function(x)
  95. if x:IsA("Part") or x:IsA("UnionOperation") then
  96. Remotes.Change:FireServer(RootPart, "CFrame", CFrame.new(RootPart.Position, Vector3.new(x.Position.X, RootPart.Position.Y, x.Position.Z)))
  97. end
  98. end
  99.  
  100. checkhoops = function()
  101. local done = false
  102. for _,v in pairs(workspace:GetChildren()) do
  103. if not done and v.Name:sub(1, 9) == "Game_Hoop" and v:FindFirstChild("Hoop") and v.Net.Position - RootPart.Position.magnitude < 50 then
  104. Hoop = v
  105. done = true
  106. end
  107. end
  108. end
  109.  
  110. checkrange = function()
  111. return Hoop.Net.Position - RootPart.Position.magnitude
  112. end
  113.  
  114. checkaccuracy = function(gui, ball, type)
  115. local Court = Hoop.Parent
  116. local corner = false
  117. for _,v in pairs(Court:GetChildren()) do
  118. if v.Name == "Corner" and v.Position - RootPart.Position.magnitude < 9 then
  119. corner = true
  120. end
  121. end
  122. if corner then
  123. if checkrange() > 37 then
  124. Remotes.Change:FireServer(Court.Pointer, "Value", 3)
  125. else
  126. Remotes.Change:FireServer(Court.Pointer, "Value", 2)
  127. end
  128. else
  129. if checkrange() > 38 then
  130. Remotes.Change:FireServer(Court.Pointer, "Value", 3)
  131. else
  132. Remotes.Change:FireServer(Court.Pointer, "Value", 2)
  133. end
  134. end
  135. local accurate = true
  136. local open = true
  137. local green = false
  138. if type == "Fade" then
  139. if gui.Frame.Line.Position.Y.Scale >= 0.28 and gui.Frame.Line.Position.Y.Scale <= 0.35 then
  140. gui.Frame.Line.BackgroundColor3 = BrickColor.Green().Color
  141. green = true
  142. local number = math.random(1, 10)
  143. if number == 1 then
  144. accurate = false
  145. end
  146. else
  147. do
  148. if gui.Frame.Line.Position.Y.Scale >= 0.35 and gui.Frame.Line.Position.Y.Scale <= 0.5 then
  149. gui.Frame.Line.BackgroundColor3 = BrickColor.Yellow().Color
  150. local number = math.random(1, 5)
  151. if number == 1 then
  152. accurate = false
  153. end
  154. else
  155. do
  156. gui.Frame.Line.BackgroundColor3 = BrickColor.Red().Color
  157. do
  158. local number = math.random(1, 3)
  159. if number ~= 1 then
  160. accurate = false
  161. end
  162. if type == "Layup" then
  163. if gui.Frame.Line.Position.Y.Scale >= 0.3 and gui.Frame.Line.Position.Y.Scale <= 0.35 then
  164. gui.Frame.Line.BackgroundColor3 = BrickColor.Green().Color
  165. green = true
  166. local number = math.random(1, 9)
  167. if number == 1 then
  168. accurate = false
  169. end
  170. else
  171. do
  172. if gui.Frame.Line.Position.Y.Scale >= 0.35 and gui.Frame.Line.Position.Y.Scale <= 0.5 then
  173. gui.Frame.Line.BackgroundColor3 = BrickColor.Yellow().Color
  174. local number = math.random(1, 6)
  175. if number == 1 then
  176. accurate = false
  177. end
  178. else
  179. do
  180. gui.Frame.Line.BackgroundColor3 = BrickColor.Red().Color
  181. do
  182. local number = math.random(1, 5)
  183. if number ~= 1 then
  184. accurate = false
  185. end
  186. if gui.Frame.Line.Position.Y.Scale >= 0.3 and gui.Frame.Line.Position.Y.Scale <= 0.35 then
  187. gui.Frame.Line.BackgroundColor3 = BrickColor.Green().Color
  188. green = true
  189. local number = math.random(1, 10)
  190. if number == 1 then
  191. accurate = false
  192. end
  193. else
  194. do
  195. if gui.Frame.Line.Position.Y.Scale >= 0.35 and gui.Frame.Line.Position.Y.Scale <= 0.5 then
  196. gui.Frame.Line.BackgroundColor3 = BrickColor.Yellow().Color
  197. local number = math.random(1, 5)
  198. if number == 1 then
  199. accurate = false
  200. end
  201. else
  202. do
  203. gui.Frame.Line.BackgroundColor3 = BrickColor.Red().Color
  204. do
  205. local number = math.random(1, 5)
  206. if number ~= 1 then
  207. accurate = false
  208. end
  209. for _,v in pairs(game.Players:GetChildren()) do
  210. if v:IsA("Player") and v.TeamColor ~= Player.TeamColor and v.Character and v.Character:FindFirstChild("HumanoidRootPart") and v ~= Player and v.Character.HumanoidRootPart.Position - RootPart.Position.magnitude < 7 then
  211. open = false
  212. end
  213. end
  214. print(open)
  215. return accurate, open, green
  216. end
  217. end
  218. end
  219. end
  220. end
  221. end
  222. end
  223. end
  224. end
  225. end
  226. end
  227. end
  228. end
  229. end
  230. end
  231. end
  232. end
  233. end
  234.  
  235. shootball = function()
  236. if checkrange() < 45 then
  237. shootdebounce = true
  238. Remotes.Change:FireServer(Player.Character.Hold, "Value", true)
  239. Remotes.Change:FireServer(Player.Character.Post, "Value", false)
  240. local gui = Player.Character.Torso.ShootGui
  241. gui.Frame.Line.Position = UDim2.new(0, 0, 1, 0)
  242. gui.Frame.Line.BackgroundColor3 = BrickColor.White().Color
  243. if Player.Character.Handle.Value == "R" then
  244. if wasposting then
  245. lookat(Hoop.Net)
  246. gui.Enabled = true
  247. wait()
  248. playanim(RFadeShot)
  249. wait()
  250. lookat(Hoop.Net)
  251. gui.Frame.Line:TweenPosition(UDim2.new(0, 0, 0.02, 0), "In", "Quad", fadetimes[math.random(1, 3)], true)
  252. local timer = fadetime
  253. repeat
  254. wait(0.01)
  255. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(40000, 40000, 40000))
  256. Remotes.Change:FireServer(RootPart.BV, "velocity", RootPart.CFrame.lookVector * fadespeed)
  257. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  258. timer = timer - 0.01
  259. until timer <= 0 or not shootdebounce or gui.Frame.Line.Position.Y.Scale < 0.04
  260. gui.Frame.Line:TweenPosition(gui.Frame.Line.Position, "Out", "Linear", 0.1, true)
  261. wait(0.12)
  262. local accurate, open, green = checkaccuracy(gui, "Ball")
  263. lookat(Hoop.Net)
  264. repeat
  265. wait(0.01)
  266. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(40000, 40000, 40000))
  267. Remotes.Change:FireServer(RootPart.BV, "velocity", RootPart.CFrame.lookVector * fadespeed)
  268. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  269. timer = timer - 0.01
  270. until timer <= 0
  271. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(0, 0, 0))
  272. local ball = Player.Character.Ball.Value
  273. Remotes.Change:FireServer(Player.Character.Hold, "Value", false)
  274. Remotes.Change:FireServer(Player.Character.Ball, "Value", nil)
  275. gui.Enabled = false
  276. Remotes.ShootBall:FireServer(ball, Hoop, shotY, accurate, open, green)
  277. wait(0.5)
  278. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 16)
  279. else
  280. do
  281. if checkrange() < 14 then
  282. lookat(Hoop.Net)
  283. gui.Enabled = true
  284. gui.Frame.Line.Position = UDim2.new(0, 0, 1, 0)
  285. wait()
  286. playanim(RFadeShot)
  287. wait()
  288. lookat(Hoop.Net)
  289. gui.Frame.Line:TweenPosition(UDim2.new(0, 0, 0.02, 0), "In", "Quad", fadetimes[math.random(1, 3)], true)
  290. local timer = fadetime
  291. repeat
  292. wait(0.01)
  293. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(40000, 40000, 40000))
  294. Remotes.Change:FireServer(RootPart.BV, "velocity", RootPart.CFrame.lookVector * fadespeed)
  295. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  296. timer = timer - 0.01
  297. until timer <= 0 or not shootdebounce or gui.Frame.Line.Position.Y.Scale < 0.04
  298. gui.Frame.Line:TweenPosition(gui.Frame.Line.Position, "Out", "Linear", 0.1, true)
  299. wait(0.12)
  300. local accurate, open, green = checkaccuracy(gui, "Fade")
  301. lookat(Hoop.Net)
  302. repeat
  303. wait(0.01)
  304. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(40000, 40000, 40000))
  305. Remotes.Change:FireServer(RootPart.BV, "velocity", RootPart.CFrame.lookVector * fadespeed)
  306. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  307. timer = timer - 0.01
  308. until timer <= 0
  309. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(0, 0, 0))
  310. local ball = Player.Character.Ball.Value
  311. Remotes.Change:FireServer(Player.Character.Hold, "Value", false)
  312. Remotes.Change:FireServer(Player.Character.Ball, "Value", nil)
  313. Remotes.ShootBall:FireServer(ball, Hoop, fadeY, accurate, open, green)
  314. wait(0.5)
  315. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 16)
  316. else
  317. do
  318. if checkrange() > 19 and checkrange() < 26 and issprinting then
  319. gui.Enabled = true
  320. gui.Frame.Line.Position = UDim2.new(0, 0, 1, 0)
  321. wait()
  322. playanim(RLayup)
  323. wait()
  324. lookat(Hoop.Net)
  325. gui.Frame.Line:TweenPosition(UDim2.new(0, 0, 0.02, 0), "In", "Quad", layuptimes[math.random(1, 3)], true)
  326. local timer = layuptime
  327. repeat
  328. wait(0.01)
  329. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(40000, 40000, 40000))
  330. Remotes.Change:FireServer(RootPart.BV, "velocity", RootPart.CFrame.lookVector * layupspeed)
  331. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  332. timer = timer - 0.01
  333. until timer <= 0 or not shootdebounce or gui.Frame.Line.Position.Y.Scale < 0.04
  334. gui.Frame.Line:TweenPosition(gui.Frame.Line.Position, "Out", "Linear", 0.1, true)
  335. wait(0.12)
  336. local accurate, open, green = checkaccuracy(gui, "Layup")
  337. lookat(Hoop.Net)
  338. repeat
  339. wait(0.01)
  340. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(40000, 40000, 40000))
  341. Remotes.Change:FireServer(RootPart.BV, "velocity", RootPart.CFrame.lookVector * layupspeed)
  342. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  343. timer = timer - 0.01
  344. until timer <= 0
  345. local ball = Player.Character.Ball.Value
  346. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(0, 0, 0))
  347. Remotes.Change:FireServer(Player.Character.Hold, "Value", false)
  348. Remotes.Change:FireServer(Player.Character.Ball, "Value", nil)
  349. Remotes.ShootBall:FireServer(ball, Hoop, layupY, accurate, open, green)
  350. wait(0.1)
  351. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 16)
  352. else
  353. do
  354. gui.Enabled = true
  355. gui.Frame.Line.Position = UDim2.new(0, 0, 1, 0)
  356. wait()
  357. if shotsprint then
  358. playanim(RSprintShot)
  359. else
  360. playanim(RShooting)
  361. end
  362. wait()
  363. gui.Frame.Line:TweenPosition(UDim2.new(0, 0, 0.02, 0), "In", "Quad", shottimes[math.random(1, 3)], true)
  364. local timer = shottime
  365. repeat
  366. wait(0.01)
  367. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  368. lookat(Hoop.Net)
  369. timer = timer - 0.01
  370. until timer <= 0 or not shootdebounce or gui.Frame.Line.Position.Y.Scale < 0.04
  371. gui.Frame.Line:TweenPosition(gui.Frame.Line.Position, "Out", "Linear", 0.1, true)
  372. wait(0.12)
  373. local accurate, open, green = checkaccuracy(gui)
  374. wait(timer - 0.1)
  375. do
  376. local ball = Player.Character.Ball.Value
  377. Remotes.Change:FireServer(Player.Character.Hold, "Value", false)
  378. Remotes.Change:FireServer(Player.Character.Ball, "Value", nil)
  379. Remotes.ShootBall:FireServer(ball, Hoop, shotY, accurate, open, green)
  380. wait(1)
  381. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 16)
  382. gui.Enabled = false
  383. if Player.Character.Handle.Value == "L" then
  384. if wasposting then
  385. lookat(Hoop.Net)
  386. gui.Enabled = true
  387. gui.Frame.Line.Position = UDim2.new(0, 0, 1, 0)
  388. wait()
  389. playanim(LFadeShot)
  390. wait()
  391. lookat(Hoop.Net)
  392. gui.Frame.Line:TweenPosition(UDim2.new(0, 0, 0.02, 0), "In", "Quad", fadetimes[math.random(1, 3)], true)
  393. local timer = fadetime
  394. repeat
  395. wait(0.01)
  396. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(40000, 40000, 40000))
  397. Remotes.Change:FireServer(RootPart.BV, "velocity", RootPart.CFrame.lookVector * fadespeed)
  398. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  399. timer = timer - 0.01
  400. until timer <= 0 or not shootdebounce or gui.Frame.Line.Position.Y.Scale < 0.04
  401. gui.Frame.Line:TweenPosition(gui.Frame.Line.Position, "Out", "Linear", 0.1, true)
  402. wait(0.12)
  403. local accurate, open, green = checkaccuracy(gui, "Fade")
  404. lookat(Hoop.Net)
  405. repeat
  406. wait(0.01)
  407. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(40000, 40000, 40000))
  408. Remotes.Change:FireServer(RootPart.BV, "velocity", RootPart.CFrame.lookVector * fadespeed)
  409. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  410. timer = timer - 0.01
  411. until timer <= 0
  412. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(0, 0, 0))
  413. local ball = Player.Character.Ball.Value
  414. Remotes.Change:FireServer(Player.Character.Hold, "Value", false)
  415. Remotes.Change:FireServer(Player.Character.Ball, "Value", nil)
  416. gui.Enabled = false
  417. Remotes.ShootBall:FireServer(ball, Hoop, shotY, accurate, open, green)
  418. wait(0.5)
  419. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 16)
  420. else
  421. do
  422. if checkrange() < 14 then
  423. lookat(Hoop.Net)
  424. gui.Enabled = true
  425. gui.Frame.Line.Position = UDim2.new(0, 0, 1, 0)
  426. wait()
  427. playanim(LFadeShot)
  428. wait()
  429. lookat(Hoop.Net)
  430. gui.Frame.Line:TweenPosition(UDim2.new(0, 0, 0.02, 0), "In", "Quad", fadetimes[math.random(1, 3)], true)
  431. local timer = fadetime
  432. repeat
  433. wait(0.01)
  434. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(40000, 40000, 40000))
  435. Remotes.Change:FireServer(RootPart.BV, "velocity", RootPart.CFrame.lookVector * fadespeed)
  436. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  437. timer = timer - 0.01
  438. until timer <= 0 or not shootdebounce or gui.Frame.Line.Position.Y.Scale < 0.04
  439. gui.Frame.Line:TweenPosition(gui.Frame.Line.Position, "Out", "Linear", 0.1, true)
  440. wait(0.12)
  441. local accurate, open, green = checkaccuracy(gui, "Fade")
  442. lookat(Hoop.Net)
  443. repeat
  444. wait(0.01)
  445. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(40000, 40000, 40000))
  446. Remotes.Change:FireServer(RootPart.BV, "velocity", RootPart.CFrame.lookVector * fadespeed)
  447. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  448. timer = timer - 0.01
  449. until timer <= 0
  450. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(0, 0, 0))
  451. local ball = Player.Character.Ball.Value
  452. Remotes.Change:FireServer(Player.Character.Hold, "Value", false)
  453. Remotes.Change:FireServer(Player.Character.Ball, "Value", nil)
  454. Remotes.ShootBall:FireServer(ball, Hoop, fadeY, accurate, open, green)
  455. wait(0.5)
  456. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 16)
  457. else
  458. do
  459. if checkrange() > 19 and checkrange() < 26 and issprinting then
  460. gui.Enabled = true
  461. gui.Frame.Line.Position = UDim2.new(0, 0, 1, 0)
  462. wait()
  463. playanim(LLayup)
  464. wait()
  465. lookat(Hoop.Net)
  466. gui.Frame.Line:TweenPosition(UDim2.new(0, 0, 0.02, 0), "In", "Quad", layuptimes[math.random(1, 3)], true)
  467. local timer = layuptime
  468. repeat
  469. wait(0.01)
  470. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(40000, 40000, 40000))
  471. Remotes.Change:FireServer(RootPart.BV, "velocity", RootPart.CFrame.lookVector * layupspeed)
  472. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  473. timer = timer - 0.01
  474. until timer <= 0 or not shootdebounce or gui.Frame.Line.Position.Y.Scale < 0.04
  475. gui.Frame.Line:TweenPosition(gui.Frame.Line.Position, "Out", "Linear", 0.1, true)
  476. wait(0.12)
  477. local accurate, open, green = checkaccuracy(gui, "Layup")
  478. lookat(Hoop.Net)
  479. repeat
  480. wait(0.01)
  481. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(40000, 40000, 40000))
  482. Remotes.Change:FireServer(RootPart.BV, "velocity", RootPart.CFrame.lookVector * layupspeed)
  483. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  484. timer = timer - 0.01
  485. until timer <= 0
  486. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(0, 0, 0))
  487. local ball = Player.Character.Ball.Value
  488. Remotes.Change:FireServer(Player.Character.Hold, "Value", false)
  489. Remotes.Change:FireServer(Player.Character.Ball, "Value", nil)
  490. Remotes.ShootBall:FireServer(ball, Hoop, 20, accurate, open, green)
  491. wait(0.1)
  492. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 16)
  493. else
  494. do
  495. gui.Enabled = true
  496. gui.Frame.Line.Position = UDim2.new(0, 0, 1, 0)
  497. wait()
  498. if shotsprint then
  499. playanim(LSprintShot)
  500. else
  501. playanim(LShooting)
  502. end
  503. wait()
  504. gui.Frame.Line:TweenPosition(UDim2.new(0, 0, 0.02, 0), "In", "Quad", shottimes[math.random(1, 3)], true)
  505. local timer = shottime
  506. repeat
  507. wait(0.01)
  508. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  509. lookat(Hoop.Net)
  510. timer = timer - 0.01
  511. until timer <= 0 or not shootdebounce or gui.Frame.Line.Position.Y.Scale < 0.04
  512. gui.Frame.Line:TweenPosition(gui.Frame.Line.Position, "Out", "Linear", 0.1, true)
  513. wait(0.12)
  514. local accurate, open, green = checkaccuracy(gui)
  515. wait(timer - 0.1)
  516. do
  517. local ball = Player.Character.Ball.Value
  518. Remotes.Change:FireServer(Player.Character.Hold, "Value", false)
  519. Remotes.Change:FireServer(Player.Character.Ball, "Value", nil)
  520. Remotes.ShootBall:FireServer(ball, Hoop, shotY, accurate, open, green)
  521. wait(1)
  522. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 16)
  523. gui.Enabled = false
  524. end
  525. end
  526. end
  527. end
  528. end
  529. end
  530. end
  531. end
  532. end
  533. end
  534. end
  535. end
  536. end
  537. end
  538. end
  539. end
  540. end
  541. end
  542.  
  543. Remotes.CreateValues:FireServer(Player.Character)
  544. Remotes.Change:FireServer(Humanoid, "JumpPower", 0)
  545. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  546. wait(1)
  547. Remotes.Change:FireServer(Player.Character.Animate, "Disabled", true)
  548. wait()
  549. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 16)
  550. Player.Character["Right Arm"].Touched:connect(function(hit)
  551. if hit.Name == "Basketball" and hit:FindFirstChild("GameBall") and Player.Character.Block.Value == true then
  552. for _,v in pairs(game.Players:GetChildren()) do
  553. if v:IsA("Player") and v.Character and v.Character:FindFirstChild("Ball") and v.Character.Ball.Value == hit and v.Character.Dunk.Value == true then
  554. Remotes.Change:FireServer(v.Character.Ball, "Value", nil)
  555. break
  556. end
  557. end
  558. do
  559. wait()
  560. Remotes.Change:FireServer(hit, "Velocity", RootPart.CFrame.lookVector * math.random(5, 20) + Vector3.new(0, math.random(0, 30), 0))
  561. if hit.Name == "Basketball" and hit:FindFirstChild("GameBall") and Player.Character.Steal.Value == true then
  562. wait(0.3)
  563. for _,v in pairs(game.Players:GetChildren()) do
  564. if v:IsA("Player") and v.Character and v.Character:FindFirstChild("Ball") and v.Character.Ball.Value == hit then
  565. Remotes.Change:FireServer(v.Character.Ball, "Value", nil)
  566. break
  567. end
  568. end
  569. do
  570. wait()
  571. Remotes.Change:FireServer(hit, "Velocity", RootPart.CFrame.lookVector * math.random(5, 20) + Vector3.new(0, math.random(0, 30), 0))
  572. if hit.Name == "Rim" and hit.Parent:FindFirstChild("Hoop") and Player.Character.Dunk.Value == true then
  573. madedunk = true
  574. local ball = Player.Character.Ball.Value
  575. Remotes.Change:FireServer(Player.Character.Ball, "Value", nil)
  576. wait()
  577. if ball then
  578. Remotes.Change:FireServer(ball.Shoot, "Value", true)
  579. Remotes.Change:FireServer(ball, "CFrame", hit.CFrame + Vector3.new(0, 1.5, 0))
  580. end
  581. end
  582. end
  583. end
  584. end
  585. end
  586. end)
  587. Player.Character["Right Arm"].Touched:connect(function(hit)
  588. local person = hit.Parent
  589. if debounce and person:FindFirstChild("Zombie") and person:FindFirstChild("Steal") and person.Steal.Value == true and Player.Character.Ball.Value ~= nil and Player.Character.Handle.Value == "R" then
  590. debounce = false
  591. Remotes.Change:FireServer(Player.Character.PickUp, "Value", false)
  592. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  593. wait()
  594. local ball = Player.Character.Ball.Value
  595. if ball then
  596. playanim(Pushed)
  597. Remotes.Change:FireServer(Player.Character.Ball, "Value", nil)
  598. wait()
  599. Remotes.Change:FireServer(ball, "Velocity", RootPart.CFrame.lookVector * -10 + Vector3.new(0, 10, 0))
  600. end
  601. wait(1)
  602. stopanim(Pushed)
  603. debounce = true
  604. Remotes.Change:FireServer(Player.Character.PickUp, "Value", true)
  605. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 16)
  606. end
  607. end)
  608. Player.Character["Left Arm"].Touched:connect(function(hit)
  609. local person = hit.Parent
  610. if debounce and person:FindFirstChild("Zombie") and person:FindFirstChild("Steal") and person.Steal.Value == true and Player.Character.Ball.Value ~= nil and Player.Character.Handle.Value == "L" then
  611. debounce = false
  612. Remotes.Change:FireServer(Player.Character.PickUp, "Value", false)
  613. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  614. wait()
  615. local ball = Player.Character.Ball.Value
  616. if ball then
  617. playanim(Pushed)
  618. Remotes.Change:FireServer(Player.Character.Ball, "Value", nil)
  619. wait()
  620. Remotes.Change:FireServer(ball, "Velocity", RootPart.CFrame.lookVector * -10 + Vector3.new(0, 10, 0))
  621. end
  622. wait(1)
  623. stopanim(Pushed)
  624. debounce = true
  625. Remotes.Change:FireServer(Player.Character.PickUp, "Value", true)
  626. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 16)
  627. end
  628. end)
  629. RootPart.Touched:connect(function(hit)
  630. local person = hit.Parent
  631. if debounce and person:FindFirstChild("Zombie") and Player.Character.Screen.Value == true and Player.Character.ScreenTime.Value < 0.15 and game.Players[person.Name].TeamColor ~= Player.TeamColor then
  632. debounce = false
  633. Remotes.Change:FireServer(Player.Character.PickUp, "Value", false)
  634. wait()
  635. local ball = Player.Character.Ball.Value
  636. if ball then
  637. Remotes.Change:FireServer(Player.Character.Ball, "Value", nil)
  638. wait()
  639. Remotes.Change:FireServer(ball, "Velocity", RootPart.CFrame.lookVector * 10 + Vector3.new(0, 30, 0))
  640. end
  641. local number = math.random(1, 7)
  642. if number ~= 1 then
  643. debounce = false
  644. wait()
  645. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  646. wait()
  647. lookat(person.HumanoidRootPart)
  648. playanim(Fall)
  649. wait()
  650. local timer = 0.2
  651. repeat
  652. wait(0.01)
  653. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  654. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(40000, 40000, 40000))
  655. Remotes.Change:FireServer(RootPart.BV, "velocity", RootPart.CFrame.lookVector * fallspeed)
  656. timer = timer - 0.01
  657. until timer <= 0 or debounce
  658. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(0, 0, 0))
  659. wait(3.25)
  660. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 16)
  661. debounce = true
  662. else
  663. do
  664. debounce = false
  665. wait()
  666. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  667. wait()
  668. lookat(person.HumanoidRootPart)
  669. playanim(Pushed)
  670. wait()
  671. do
  672. do
  673. local timer = 0.17
  674. repeat
  675. wait(0.01)
  676. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  677. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(40000, 40000, 40000))
  678. Remotes.Change:FireServer(RootPart.BV, "velocity", RootPart.CFrame.lookVector * pushedspeed)
  679. timer = timer - 0.01
  680. until timer <= 0 or debounce
  681. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(0, 0, 0))
  682. wait(0.5)
  683. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 16)
  684. debounce = true
  685. Remotes.Change:FireServer(Player.Character.PickUp, "Value", true)
  686. debounce = true
  687. if debounce and person:FindFirstChild("Zombie") and Player.Character.Ball.Value ~= nil and Player.Character.Sprinting.Value == true and game.Players[person.Name].TeamColor ~= Player.TeamColor then
  688. debounce = false
  689. Remotes.Change:FireServer(Player.Character.PickUp, "Value", false)
  690. wait()
  691. local ball = Player.Character.Ball.Value
  692. if ball then
  693. Remotes.Change:FireServer(Player.Character.Ball, "Value", nil)
  694. wait()
  695. Remotes.Change:FireServer(ball, "Velocity", RootPart.CFrame.lookVector * 10 + Vector3.new(0, 30, 0))
  696. end
  697. local number = math.random(1, 5)
  698. if number ~= 1 then
  699. debounce = false
  700. wait()
  701. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  702. wait()
  703. lookat(person.HumanoidRootPart)
  704. playanim(Fall)
  705. wait()
  706. local timer = 0.2
  707. repeat
  708. wait(0.01)
  709. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  710. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(40000, 40000, 40000))
  711. Remotes.Change:FireServer(RootPart.BV, "velocity", RootPart.CFrame.lookVector * fallspeed)
  712. timer = timer - 0.01
  713. until timer <= 0 or debounce
  714. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(0, 0, 0))
  715. wait(3.25)
  716. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 16)
  717. debounce = true
  718. else
  719. do
  720. debounce = false
  721. wait()
  722. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  723. wait()
  724. lookat(person.HumanoidRootPart)
  725. playanim(Pushed)
  726. wait()
  727. do
  728. do
  729. local timer = 0.17
  730. repeat
  731. wait(0.01)
  732. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  733. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(40000, 40000, 40000))
  734. Remotes.Change:FireServer(RootPart.BV, "velocity", RootPart.CFrame.lookVector * pushedspeed)
  735. timer = timer - 0.01
  736. until timer <= 0 or debounce
  737. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(0, 0, 0))
  738. wait(0.5)
  739. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 16)
  740. debounce = true
  741. Remotes.Change:FireServer(Player.Character.PickUp, "Value", true)
  742. debounce = true
  743. if debounce and person:FindFirstChild("Zombie") and person:FindFirstChild("Guard") and Player.Character.Post.Value == true and Player.Character.Ball.Value ~= nil and game.Players[person.Name].TeamColor ~= Player.TeamColor then
  744. if person.Guard.Value == true then
  745. Remotes.Change:FireServer(RootPart, "CFrame", RootPart.CFrame - RootPart.CFrame.lookVector * math.random(2, 4))
  746. else
  747. Remotes.Change:FireServer(RootPart, "CFrame", RootPart.CFrame - RootPart.CFrame.lookVector * math.random(0, 2))
  748. end
  749. else
  750. if debounce and person:FindFirstChild("Zombie") and person:FindFirstChild("Screen") and person.Screen.Value == true and person.ScreenTime.Value > 0.15 and Player.Character.Ball.Value == nil and game.Players[person.Name].TeamColor ~= Player.TeamColor then
  751. Remotes.Change:FireServer(Player.Character.PickUp, "Value", false)
  752. if Player.Character.Sprinting.Value == true then
  753. local number = math.random(1, 5)
  754. if number ~= 1 then
  755. debounce = false
  756. wait()
  757. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  758. wait()
  759. lookat(person.HumanoidRootPart)
  760. playanim(Fall)
  761. wait()
  762. local timer = 0.2
  763. repeat
  764. wait(0.01)
  765. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  766. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(40000, 40000, 40000))
  767. Remotes.Change:FireServer(RootPart.BV, "velocity", RootPart.CFrame.lookVector * fallspeed)
  768. timer = timer - 0.01
  769. until timer <= 0 or debounce
  770. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(0, 0, 0))
  771. wait(3.25)
  772. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 16)
  773. debounce = true
  774. else
  775. do
  776. debounce = false
  777. wait()
  778. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  779. wait()
  780. lookat(person.HumanoidRootPart)
  781. playanim(Pushed)
  782. wait()
  783. do
  784. local timer = 0.17
  785. repeat
  786. wait(0.01)
  787. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  788. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(40000, 40000, 40000))
  789. Remotes.Change:FireServer(RootPart.BV, "velocity", RootPart.CFrame.lookVector * pushedspeed)
  790. timer = timer - 0.01
  791. until timer <= 0 or debounce
  792. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(0, 0, 0))
  793. wait(0.5)
  794. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 16)
  795. debounce = true
  796. local number = math.random(1, 5)
  797. if number == 1 then
  798. debounce = false
  799. wait()
  800. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  801. wait()
  802. lookat(person.HumanoidRootPart)
  803. playanim(Fall)
  804. wait()
  805. local timer = 0.2
  806. repeat
  807. wait(0.01)
  808. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  809. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(40000, 40000, 40000))
  810. Remotes.Change:FireServer(RootPart.BV, "velocity", RootPart.CFrame.lookVector * fallspeed)
  811. timer = timer - 0.01
  812. until timer <= 0 or debounce
  813. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(0, 0, 0))
  814. wait(3.25)
  815. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 16)
  816. debounce = true
  817. else
  818. do
  819. debounce = false
  820. wait()
  821. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  822. wait()
  823. lookat(person.HumanoidRootPart)
  824. playanim(Pushed)
  825. wait()
  826. do
  827. local timer = 0.17
  828. repeat
  829. wait(0.01)
  830. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  831. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(40000, 40000, 40000))
  832. Remotes.Change:FireServer(RootPart.BV, "velocity", RootPart.CFrame.lookVector * pushedspeed)
  833. timer = timer - 0.01
  834. until timer <= 0 or debounce
  835. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(0, 0, 0))
  836. wait(0.5)
  837. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 16)
  838. debounce = true
  839. Remotes.Change:FireServer(Player.Character.PickUp, "Value", true)
  840. if debounce and person:FindFirstChild("Zombie") and person:FindFirstChild("Ball") and person.Post.Value == true and Player.Character.Ball.Value == nil and person.Ball.Value ~= nil then
  841. if Player.Character.Guard.Value == true then
  842. Remotes.Change:FireServer(Player.Character.PickUp, "Value", false)
  843. Remotes.Change:FireServer(Player.Character.Ball, "Value", nil)
  844. local number = math.random(1, 10)
  845. if number == 1 then
  846. debounce = false
  847. wait()
  848. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  849. wait()
  850. lookat(person.HumanoidRootPart)
  851. playanim(Fall)
  852. wait()
  853. local timer = 0.2
  854. repeat
  855. wait(0.01)
  856. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  857. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(40000, 40000, 40000))
  858. Remotes.Change:FireServer(RootPart.BV, "velocity", RootPart.CFrame.lookVector * fallspeed)
  859. timer = timer - 0.01
  860. until timer <= 0 or debounce
  861. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(0, 0, 0))
  862. wait(3.25)
  863. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 16)
  864. debounce = true
  865. else
  866. do
  867. debounce = false
  868. wait()
  869. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  870. wait()
  871. lookat(person.HumanoidRootPart)
  872. playanim(Pushed)
  873. wait()
  874. do
  875. local timer = 0.1
  876. repeat
  877. wait(0.01)
  878. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  879. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(40000, 40000, 40000))
  880. Remotes.Change:FireServer(RootPart.BV, "velocity", RootPart.CFrame.lookVector * (pushedspeed + 1))
  881. timer = timer - 0.01
  882. until timer <= 0 or debounce
  883. stopanim(Pushed)
  884. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(0, 0, 0))
  885. wait()
  886. debounce = true
  887. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 16)
  888. Remotes.Change:FireServer(Player.Character.PickUp, "Value", false)
  889. Remotes.Change:FireServer(Player.Character.Ball, "Value", nil)
  890. local number = math.random(1, 4)
  891. if number == 1 then
  892. debounce = false
  893. wait()
  894. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  895. wait()
  896. lookat(person.HumanoidRootPart)
  897. playanim(Fall)
  898. wait()
  899. local timer = 0.2
  900. repeat
  901. wait(0.01)
  902. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  903. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(40000, 40000, 40000))
  904. Remotes.Change:FireServer(RootPart.BV, "velocity", RootPart.CFrame.lookVector * fallspeed)
  905. timer = timer - 0.01
  906. until timer <= 0 or debounce
  907. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(0, 0, 0))
  908. wait(3.25)
  909. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 16)
  910. debounce = true
  911. else
  912. do
  913. debounce = false
  914. wait()
  915. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  916. wait()
  917. lookat(person.HumanoidRootPart)
  918. playanim(Pushed)
  919. wait()
  920. do
  921. local timer = 0.14
  922. repeat
  923. wait(0.01)
  924. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  925. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(40000, 40000, 40000))
  926. Remotes.Change:FireServer(RootPart.BV, "velocity", RootPart.CFrame.lookVector * pushedspeed)
  927. timer = timer - 0.01
  928. until timer <= 0 or debounce
  929. stopanim(Pushed)
  930. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(0, 0, 0))
  931. wait(0.5)
  932. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 16)
  933. debounce = true
  934. Remotes.Change:FireServer(Player.Character.PickUp, "Value", true)
  935. if debounce and person:FindFirstChild("Zombie") and person:FindFirstChild("Guard") and person.Guard.Value == true and Player.Character.Ball.Value ~= nil and game.Players[person.Name].TeamColor ~= Player.TeamColor then
  936. Remotes.Change:FireServer(Player.Character.PickUp, "Value", false)
  937. local number = math.random(1, 10)
  938. if number == 1 then
  939. Remotes.Change:FireServer(Player.Character.Ball, "Value", nil)
  940. debounce = false
  941. wait()
  942. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  943. wait()
  944. lookat(person.HumanoidRootPart)
  945. playanim(Fall)
  946. wait()
  947. local timer = 0.2
  948. repeat
  949. wait(0.01)
  950. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  951. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(40000, 40000, 40000))
  952. Remotes.Change:FireServer(RootPart.BV, "velocity", RootPart.CFrame.lookVector * fallspeed)
  953. timer = timer - 0.01
  954. until timer <= 0 or debounce
  955. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(0, 0, 0))
  956. wait(3.25)
  957. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 16)
  958. debounce = true
  959. else
  960. do
  961. local pnumber = math.random(1, 5)
  962. if pnumber == 1 then
  963. Remotes.Change:FireServer(Player.Character.Ball, "Value", nil)
  964. end
  965. debounce = false
  966. wait()
  967. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  968. wait()
  969. lookat(person.HumanoidRootPart)
  970. playanim(Pushed)
  971. wait()
  972. do
  973. local timer = 0.08
  974. repeat
  975. wait(0.01)
  976. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  977. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(40000, 40000, 40000))
  978. Remotes.Change:FireServer(RootPart.BV, "velocity", RootPart.CFrame.lookVector * (pushedspeed - 7))
  979. timer = timer - 0.01
  980. until timer <= 0 or debounce
  981. stopanim(Pushed)
  982. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(0, 0, 0))
  983. debounce = true
  984. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 16)
  985. Remotes.Change:FireServer(Player.Character.PickUp, "Value", true)
  986. end
  987. end
  988. end
  989. end
  990. end
  991. end
  992. end
  993. end
  994. end
  995. end
  996. end
  997. end
  998. end
  999. end
  1000. end
  1001. end
  1002. end
  1003. end
  1004. end
  1005. end
  1006. end
  1007. end
  1008. end
  1009. end
  1010. end
  1011. end
  1012. end
  1013. end
  1014. end
  1015. end
  1016. end
  1017. end)
  1018. Mouse.KeyDown:connect(function(key)
  1019. if debounce then
  1020. if key == run and Player.Character.Post.Value == false then
  1021. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 18)
  1022. Remotes.Change:FireServer(Player.Character.Look, "Value", false)
  1023. Remotes.Change:FireServer(Player.Character.Sprinting, "Value", true)
  1024. wait(0.5)
  1025. repeat
  1026. wait()
  1027. until not debounce or Player.Character.Stamina.Value == 0 or Player.Character.Sprinting.Value == false
  1028. Remotes.Change:FireServer(Player.Character.Sprinting, "Value", false)
  1029. if debounce then
  1030. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 16)
  1031. end
  1032. Remotes.Change:FireServer(Player.Character.Look, "Value", true)
  1033. else
  1034. if key == handle then
  1035. if Player.Character.Handle.Value == "R" then
  1036. Remotes.Change:FireServer(Player.Character.Handle, "Value", "L")
  1037. else
  1038. Remotes.Change:FireServer(Player.Character.Handle, "Value", "R")
  1039. end
  1040. else
  1041. if key == shoot and Player.Character.Ball.Value ~= nil then
  1042. issprinting = Player.Character.Sprinting.Value
  1043. shotsprint = Player.Character.Sprinting.Value
  1044. wasposting = Player.Character.Post.Value
  1045. debounce = false
  1046. shootball()
  1047. debounce = true
  1048. else
  1049. if Player.userId == 4925605 and key == dunk and combo and Player.Character.Sprinting.Value == true and Player.Character.Ball.Value ~= nil and checkrange() > 19 and checkrange() < 21 then
  1050. madedunk = false
  1051. debounce = false
  1052. wait(0.1)
  1053. local Court = workspace:FindFirstChild("Court_" .. Player.Court.Value)
  1054. if Court then
  1055. Remotes.Change:FireServer(Court.Pointer, "Value", 2)
  1056. end
  1057. Remotes.Change:FireServer(Player.Character.Hold, "Value", true)
  1058. Remotes.Change:FireServer(Player.Character.PickUp, "Value", false)
  1059. Remotes.Change:FireServer(Player.Character.Dunk, "Value", true)
  1060. Remotes.Change:FireServer(Player.Character.Handle, "Value", "L")
  1061. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  1062. lookat(Hoop.Net)
  1063. playanim(LegDunk)
  1064. local timer = dunktime
  1065. repeat
  1066. wait(0.01)
  1067. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  1068. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(40000, 40000, 40000))
  1069. Remotes.Change:FireServer(RootPart.BV, "velocity", RootPart.CFrame.lookVector * dunkspeed)
  1070. if timer < 0.19 then
  1071. Remotes.Change:FireServer(Player.Character.Handle, "Value", "R")
  1072. end
  1073. timer = timer - 0.01
  1074. until timer <= 0 or debounce or madedunk
  1075. wait()
  1076. if madedunk then
  1077. stopanim(LegDunk)
  1078. playanim(HoldLegDunk)
  1079. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(0, 0, 0))
  1080. wait(2)
  1081. else
  1082. Remotes.Change:FireServer(Player.Character.Ball, "Value", nil)
  1083. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(0, 0, 0))
  1084. wait(1.5)
  1085. end
  1086. Remotes.Change:FireServer(Player.Character.Ball, "Value", nil)
  1087. wait(0.2)
  1088. Remotes.Change:FireServer(Player.Character.Dunk, "Value", false)
  1089. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(0, 0, 0))
  1090. wait(0.5)
  1091. stopanim(LegDunk)
  1092. debounce = true
  1093. Remotes.Change:FireServer(Player.Character.Hold, "Value", false)
  1094. Remotes.Change:FireServer(Player.Character.PickUp, "Value", true)
  1095. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 16)
  1096. else
  1097. do
  1098. if key == dunk and Player.Character.Sprinting.Value == true and Player.Character.Ball.Value ~= nil and checkrange() > 19 and checkrange() < 21 then
  1099. madedunk = false
  1100. debounce = false
  1101. wait(0.1)
  1102. local Court = workspace:FindFirstChild("Court_" .. Player.Court.Value)
  1103. if Court then
  1104. Remotes.Change:FireServer(Court.Pointer, "Value", 2)
  1105. end
  1106. Remotes.Change:FireServer(Player.Character.Hold, "Value", true)
  1107. Remotes.Change:FireServer(Player.Character.PickUp, "Value", false)
  1108. Remotes.Change:FireServer(Player.Character.Dunk, "Value", true)
  1109. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  1110. lookat(Hoop.Net)
  1111. playanim(Dunk)
  1112. local timer = dunktime
  1113. repeat
  1114. wait(0.01)
  1115. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  1116. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(40000, 40000, 40000))
  1117. Remotes.Change:FireServer(RootPart.BV, "velocity", RootPart.CFrame.lookVector * dunkspeed)
  1118. timer = timer - 0.01
  1119. until timer <= 0 or debounce or madedunk
  1120. wait()
  1121. if madedunk then
  1122. stopanim(Dunk)
  1123. playanim(HoldDunk)
  1124. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(0, 0, 0))
  1125. wait(2)
  1126. else
  1127. Remotes.Change:FireServer(Player.Character.Ball, "Value", nil)
  1128. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(0, 0, 0))
  1129. wait(1.5)
  1130. end
  1131. Remotes.Change:FireServer(Player.Character.Ball, "Value", nil)
  1132. wait(0.2)
  1133. Remotes.Change:FireServer(Player.Character.Dunk, "Value", false)
  1134. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(0, 0, 0))
  1135. wait(0.5)
  1136. stopanim(Dunk)
  1137. debounce = true
  1138. Remotes.Change:FireServer(Player.Character.Hold, "Value", false)
  1139. Remotes.Change:FireServer(Player.Character.PickUp, "Value", true)
  1140. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 16)
  1141. else
  1142. do
  1143. if key == spindunk and Player.Character.Sprinting.Value == true and Player.Character.Ball.Value ~= nil and checkrange() > 19 and checkrange() < 21 then
  1144. madedunk = false
  1145. debounce = false
  1146. wait(0.1)
  1147. local Court = workspace:FindFirstChild("Court_" .. Player.Court.Value)
  1148. if Court then
  1149. Remotes.Change:FireServer(Court.Pointer, "Value", 2)
  1150. end
  1151. Remotes.Change:FireServer(Player.Character.Hold, "Value", true)
  1152. Remotes.Change:FireServer(Player.Character.PickUp, "Value", false)
  1153. Remotes.Change:FireServer(Player.Character.Dunk, "Value", true)
  1154. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  1155. lookat(Hoop.Net)
  1156. playanim(SpinDunk)
  1157. local timer = dunktime
  1158. repeat
  1159. wait(0.01)
  1160. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  1161. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(40000, 40000, 40000))
  1162. Remotes.Change:FireServer(RootPart.BV, "velocity", RootPart.CFrame.lookVector * dunkspeed)
  1163. timer = timer - 0.01
  1164. until timer <= 0 or debounce or madedunk
  1165. wait()
  1166. if madedunk then
  1167. stopanim(Dunk)
  1168. playanim(HoldDunk)
  1169. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(0, 0, 0))
  1170. wait(2)
  1171. else
  1172. Remotes.Change:FireServer(Player.Character.Ball, "Value", nil)
  1173. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(0, 0, 0))
  1174. wait(1.5)
  1175. end
  1176. Remotes.Change:FireServer(Player.Character.Ball, "Value", nil)
  1177. wait(0.2)
  1178. Remotes.Change:FireServer(Player.Character.Dunk, "Value", false)
  1179. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(0, 0, 0))
  1180. wait(0.5)
  1181. stopanim(SpinDunk)
  1182. debounce = true
  1183. Remotes.Change:FireServer(Player.Character.Hold, "Value", false)
  1184. Remotes.Change:FireServer(Player.Character.PickUp, "Value", true)
  1185. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 16)
  1186. else
  1187. do
  1188. if Player.InGame.Value == true and key == guard and Player.Character.Ball.Value == nil and Player.Character.Stamina.MaxValue / 1.2 < Player.Character.Stamina.Value then
  1189. Remotes.Change:FireServer(Humanoid, "AutoRotate", false)
  1190. Remotes.Change:FireServer(Player.Character.PickUp, "Value", false)
  1191. Remotes.Change:FireServer(Player.Character.Guard, "Value", true)
  1192. wait(0.1)
  1193. repeat
  1194. wait()
  1195. until Player.Character.Guard.Value == false or Player.Character.Ball.Value ~= nil or Player.Character.Sprinting.Value == true
  1196. Remotes.Change:FireServer(Humanoid, "AutoRotate", true)
  1197. Remotes.Change:FireServer(Player.Character.Guard, "Value", false)
  1198. Remotes.Change:FireServer(Player.Character.PickUp, "Value", true)
  1199. else
  1200. if key == faceway then
  1201. Remotes.Change:FireServer(Humanoid, "AutoRotate", false)
  1202. else
  1203. if Player.InGame.Value == true and key == dropball and Player.Character.Ball.Value ~= nil then
  1204. debounce = false
  1205. wait()
  1206. Remotes.Change:FireServer(Player.Character.PickUp, "Value", false)
  1207. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  1208. playanim(DropBall)
  1209. wait(0.5)
  1210. local ball = Player.Character.Ball.Value
  1211. if ball then
  1212. Remotes.Change:FireServer(Player.Character.Ball, "Value", nil)
  1213. wait()
  1214. Remotes.Change:FireServer(ball, "CFrame", RootPart.CFrame + RootPart.CFrame.lookVector * 3.5 + Vector3.new(0, -2, 0))
  1215. end
  1216. wait(0.3)
  1217. stopanim(DropBall)
  1218. debounce = true
  1219. Remotes.Change:FireServer(Player.Character.PickUp, "Value", true)
  1220. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 16)
  1221. else
  1222. do
  1223. if Player.InGame.Value == true and key == screen and Player.Character.Ball.Value == nil then
  1224. debounce = false
  1225. Remotes.Change:FireServer(Player.Character.PickUp, "Value", false)
  1226. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0.1)
  1227. Remotes.Change:FireServer(Player.Character.Screen, "Value", true)
  1228. wait(0.2)
  1229. playanim(Screen)
  1230. repeat
  1231. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0.1)
  1232. wait()
  1233. until Player.Character.Screen.Value == false or debounce
  1234. stopanim(Screen)
  1235. Remotes.Change:FireServer(Player.Character.Screen, "Value", false)
  1236. debounce = true
  1237. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 16)
  1238. Remotes.Change:FireServer(Player.Character.PickUp, "Value", true)
  1239. else
  1240. if Player.InGame.Value == true and key == block and Player.Character.Ball.Value == nil then
  1241. debounce = false
  1242. wait()
  1243. Remotes.Change:FireServer(Player.Character.PickUp, "Value", false)
  1244. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 5)
  1245. wait()
  1246. playanim(Block)
  1247. wait(0.2)
  1248. Remotes.Change:FireServer(Player.Character.Block, "Value", true)
  1249. wait(0.35)
  1250. Remotes.Change:FireServer(Player.Character.Block, "Value", false)
  1251. wait(1.15)
  1252. stopanim(Block)
  1253. debounce = true
  1254. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 16)
  1255. Remotes.Change:FireServer(Player.Character.PickUp, "Value", true)
  1256. else
  1257. if Player.InGame.Value == true and key == steal and Player.Character.Ball.Value == nil then
  1258. debounce = false
  1259. wait()
  1260. Remotes.Change:FireServer(Player.Character.PickUp, "Value", false)
  1261. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 9)
  1262. playanim(Steal)
  1263. wait(0.1)
  1264. Remotes.Change:FireServer(Player.Character.Steal, "Value", true)
  1265. wait(0.4)
  1266. Remotes.Change:FireServer(Player.Character.Steal, "Value", false)
  1267. wait(1)
  1268. stopanim(Steal)
  1269. debounce = true
  1270. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 16)
  1271. Remotes.Change:FireServer(Player.Character.PickUp, "Value", true)
  1272. else
  1273. if key == post and Player.Character.Ball.Value ~= nil and checkrange() < 38 and Player.Character.Sprinting.Value == false then
  1274. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  1275. lookat(Hoop.Net)
  1276. Remotes.Change:FireServer(Player.Character.Post, "Value", true)
  1277. wait(0.1)
  1278. repeat
  1279. wait()
  1280. if checkrange() > 17 then
  1281. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(40000, 40000, 40000))
  1282. Remotes.Change:FireServer(RootPart.BV, "velocity", RootPart.CFrame.lookVector * postspeed)
  1283. else
  1284. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(0, 0, 0))
  1285. Remotes.Change:FireServer(RootPart.BV, "velocity", RootPart.CFrame.lookVector * postspeed)
  1286. end
  1287. until Player.Character.Post.Value == false or not debounce or Player.Character.Ball.Value == nil
  1288. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(0, 0, 0))
  1289. Remotes.Change:FireServer(Player.Character.Post, "Value", false)
  1290. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 16)
  1291. else
  1292. if dropdebounce and key == poststop and Player.Character.Ball.Value ~= nil then
  1293. dropdebounce = false
  1294. debounce = false
  1295. lookat(Hoop.Net)
  1296. playanim(PostStop)
  1297. wait()
  1298. local timer = droptime
  1299. repeat
  1300. wait(0.01)
  1301. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  1302. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(40000, 40000, 40000))
  1303. Remotes.Change:FireServer(RootPart.BV, "velocity", RootPart.CFrame.lookVector * poststopspeed)
  1304. timer = timer - 0.01
  1305. until timer <= 0 or Player.Character.Ball.Value == nil or debounce
  1306. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(0, 0, 0))
  1307. Remotes.Change:FireServer(Player.Character.Post, "Value", false)
  1308. stopanim(PostStop)
  1309. debounce = true
  1310. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 16)
  1311. wait(2)
  1312. dropdebounce = true
  1313. else
  1314. do
  1315. if spindebounce and key == postspinleft and Player.Character.Ball.Value ~= nil then
  1316. spindebounce = false
  1317. debounce = false
  1318. playanim(PostSpinL)
  1319. wait()
  1320. Remotes.Change:FireServer(Player.Character.Hold, "Value", true)
  1321. local timer = spintime
  1322. repeat
  1323. wait(0.01)
  1324. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  1325. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(40000, 40000, 40000))
  1326. Remotes.Change:FireServer(RootPart.BV, "velocity", RootPart.CFrame.lookVector * spinspeed)
  1327. timer = timer - 0.01
  1328. until timer <= 0 or Player.Character.Ball.Value == nil or debounce
  1329. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(0, 0, 0))
  1330. Remotes.Change:FireServer(Player.Character.Post, "Value", false)
  1331. Remotes.Change:FireServer(Player.Character.Hold, "Value", false)
  1332. stopanim(PostSpinL)
  1333. debounce = true
  1334. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 16)
  1335. wait(2.5)
  1336. spindebounce = true
  1337. else
  1338. do
  1339. if spindebounce and key == postspinright and Player.Character.Ball.Value ~= nil then
  1340. spindebounce = false
  1341. debounce = false
  1342. Remotes.Change:FireServer(Player.Character.Hold, "Value", true)
  1343. playanim(PostSpinR)
  1344. wait()
  1345. local timer = spintime
  1346. repeat
  1347. wait(0.01)
  1348. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 0)
  1349. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(40000, 40000, 40000))
  1350. Remotes.Change:FireServer(RootPart.BV, "velocity", RootPart.CFrame.lookVector * spinspeed)
  1351. timer = timer - 0.01
  1352. until timer <= 0 or Player.Character.Ball.Value == nil or debounce
  1353. Remotes.Change:FireServer(RootPart.BV, "MaxForce", Vector3.new(0, 0, 0))
  1354. stopanim(PostSpinR)
  1355. Remotes.Change:FireServer(Player.Character.Post, "Value", false)
  1356. Remotes.Change:FireServer(Player.Character.Hold, "Value", false)
  1357. debounce = true
  1358. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 16)
  1359. wait(2.5)
  1360. spindebounce = true
  1361. else
  1362. do
  1363. if key == pass and Player.Character.Ball.Value ~= nil then
  1364. Remotes.Change:FireServer(Player.Character.Hold, "Value", true)
  1365. Remotes.Change:FireServer(Player.Character.PickUp, "Value", false)
  1366. ispassing = true
  1367. if Player.Character.Sprinting.Value == true then
  1368. debounce = false
  1369. wait()
  1370. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 2)
  1371. playanim(RegPass)
  1372. wait()
  1373. local timer = 0.05
  1374. local power = 40
  1375. repeat
  1376. wait(0.005)
  1377. Remotes.Change:FireServer(RootPart, "CFrame", CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.X, RootPart.Position.Y, Mouse.Hit.Z)))
  1378. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 2)
  1379. timer = timer - 0.01
  1380. power = power + 10
  1381. until timer <= 0 or Player.Character.Ball.Value == nil or debounce or not ispassing
  1382. print(power .. "%")
  1383. wait()
  1384. local ball = Player.Character.Ball.Value
  1385. if ball then
  1386. Remotes.Change:FireServer(Player.Character.Ball, "Value", nil)
  1387. wait()
  1388. Remotes.Change:FireServer(ball, "CFrame", RootPart.CFrame + RootPart.CFrame.lookVector * 3 + Vector3.new(0, 2, 0))
  1389. wait(0.1)
  1390. Remotes.Change:FireServer(ball, "Velocity", RootPart.CFrame.lookVector * (power) + Vector3.new(0, 15 + (power) / 4, 0))
  1391. end
  1392. wait(0.4)
  1393. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 16)
  1394. else
  1395. do
  1396. debounce = false
  1397. wait()
  1398. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 2)
  1399. playanim(HighPass)
  1400. wait()
  1401. local timer = 0.05
  1402. local power = 40
  1403. repeat
  1404. wait(0.005)
  1405. Remotes.Change:FireServer(RootPart, "CFrame", CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.X, RootPart.Position.Y, Mouse.Hit.Z)))
  1406. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 2)
  1407. timer = timer - 0.01
  1408. power = power + 9
  1409. until timer <= 0 or Player.Character.Ball.Value == nil or debounce or not ispassing
  1410. print(power .. "%")
  1411. wait()
  1412. do
  1413. local ball = Player.Character.Ball.Value
  1414. if ball then
  1415. Remotes.Change:FireServer(Player.Character.Ball, "Value", nil)
  1416. wait()
  1417. Remotes.Change:FireServer(ball, "CFrame", RootPart.CFrame + RootPart.CFrame.lookVector * 1 + Vector3.new(0, 3, 0))
  1418. wait(0.1)
  1419. Remotes.Change:FireServer(ball, "Velocity", RootPart.CFrame.lookVector * (power) + Vector3.new(0, 30 + (power) / 3.5, 0))
  1420. end
  1421. wait(0.4)
  1422. Remotes.Change:FireServer(Humanoid, "WalkSpeed", 16)
  1423. Remotes.Change:FireServer(Player.Character.Hold, "Value", false)
  1424. Remotes.Change:FireServer(Player.Character.PickUp, "Value", true)
  1425. debounce = true
  1426. if key == holder then
  1427. combo = true
  1428. end
  1429. end
  1430. end
  1431. end
  1432. end
  1433. end
  1434. end
  1435. end
  1436. end
  1437. end
  1438. end
  1439. end
  1440. end
  1441. end
  1442. end
  1443. end
  1444. end
  1445. end
  1446. end
  1447. end
  1448. end
  1449. end
  1450. end
  1451. end
  1452. end
  1453. end
  1454. end
  1455. end
  1456. end
  1457. end)
  1458. Mouse.KeyUp:connect(function(key)
  1459. if key == run then
  1460. Remotes.Change:FireServer(Player.Character.Sprinting, "Value", false)
  1461. issprinting = false
  1462. else
  1463. if key == shoot then
  1464. shootdebounce = false
  1465. else
  1466. if key == guard then
  1467. Remotes.Change:FireServer(Player.Character.Guard, "Value", false)
  1468. else
  1469. if key == pass then
  1470. ispassing = false
  1471. else
  1472. if key == screen then
  1473. Remotes.Change:FireServer(Player.Character.Screen, "Value", false)
  1474. else
  1475. if key == faceway then
  1476. Remotes.Change:FireServer(Humanoid, "AutoRotate", true)
  1477. else
  1478. if key == holder then
  1479. combo = false
  1480. end
  1481. end
  1482. end
  1483. end
  1484. end
  1485. end
  1486. end
  1487. end)
  1488. Mouse.Button1Down:connect(function()
  1489. if Player.Character.Guard.Value == true and workspace:FindFirstChild("Court_" .. Player.Court.Value) and workspace["Court_" .. Player.Court.Value].Ready.Value == true then
  1490. Remotes.Change:FireServer(RootPart, "CFrame", CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.X, RootPart.Position.Y, Mouse.Hit.Z)))
  1491. end
  1492. end)
  1493. Remotes.Loop:FireServer()
  1494. Remotes.Change:FireServer(Player.Character.Save, "Value", true)
  1495. while 1 do
  1496. while 1 do
  1497. wait(1)
  1498. checkhoops()
  1499. Remotes.Change:FireServer(Player.Character.Debounc, "Value", debounce)
  1500. Remotes.Change:FireServer(Player.Character.Head.StaminaGui.TextLabe, "TextColor3", Player.TeamColor.Color)
  1501. for _,v in pairs(workspace:GetChildren()) do
  1502. if v.Name:sub(1, 6) == "Court_" and v:FindFirstChild("Court") then
  1503. if Player.Court.Value == v.Court.Value and Player.TeamColor == BrickColor.Red() then
  1504. Hoop = v.Game_Hoop1
  1505. else
  1506. if Player.Court.Value == v.Court.Value and Player.TeamColor == BrickColor.Blue() then
  1507. Hoop = v.Game_Hoop2
  1508. end
  1509. end
  1510. end
  1511. end
  1512. if Player.Character.Screen.Value == true then
  1513. Player.Character.ScreenTime.Value = Player.Character.ScreenTime.Value + 0.01
  1514. -- DECOMPILER ERROR at PC401: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1515.  
  1516. -- DECOMPILER ERROR at PC401: LeaveBlock: unexpected jumping out IF_STMT
  1517.  
  1518. end
  1519. end
  1520. Player.Character.ScreenTime.Value = 0
  1521. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement