ColdSpecs

MainClient

Nov 2nd, 2025
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.86 KB | None | 0 0
  1. game:GetService("GuiService")
  2. game:GetService("RunService")
  3. local v1 = game:GetService("UserInputService")
  4. game:GetService("ContextActionService")
  5. local u2 = game:GetService("ReplicatedStorage")
  6. local u3 = game:GetService("Players")
  7. game:GetService("Teams"):WaitForChild("Referees")
  8. local v4 = u2:WaitForChild("remotes")
  9. local u5 = u3.LocalPlayer
  10. local u6 = u5.Character or u5.CharacterAdded:Wait()
  11. local u7 = u6:WaitForChild("Humanoid")
  12. local v8 = u6:WaitForChild("HumanoidRootPart")
  13. local u9 = u5:GetMouse()
  14. local u10 = false
  15. local u11 = false
  16. local v12 = Instance.new("Animation")
  17. v12.AnimationId = "rbxassetid://130921967204402"
  18. v12.Parent = v8
  19. u7:LoadAnimation(v12)
  20. local v13 = Instance.new("Animation")
  21. v13.AnimationId = "rbxassetid://18263817186"
  22. v13.Parent = v8
  23. local v14 = Instance.new("Animation")
  24. v14.AnimationId = "rbxassetid://18263880986"
  25. v14.Parent = v8
  26. local u15 = u7:LoadAnimation(v13)
  27. local u16 = u7:LoadAnimation(v14)
  28. function switchHands()
  29. --[[
  30. Upvalues:
  31. [1] = u6
  32. [2] = u15
  33. [3] = u16
  34. --]]
  35. if u6 and (u6:FindFirstChild("Basketball") and (u6.Basketball:IsA("Folder") and u6.Basketball:FindFirstChild("Part"))) then
  36. local v17 = u6:FindFirstChild("Basketball")
  37. local v18 = v17:FindFirstChild("handles_event")
  38. if v17.HandValue.Value == 1 then
  39. u15:Stop()
  40. v18:FireServer(0)
  41. u16:Play()
  42. return
  43. end
  44. u16:Stop()
  45. v18:FireServer(1)
  46. u15:Play()
  47. end
  48. end
  49. function sink()
  50. return Enum.ContextActionResult.Sink
  51. end
  52. local u19 = true
  53. u6.ChildAdded:Connect(function(p20) --[[Anonymous function at line 57]]
  54. --[[
  55. Upvalues:
  56. [1] = u19
  57. [2] = u10
  58. [3] = u11
  59. --]]
  60. if p20.Name == "Basketball" and p20:IsA("Folder") then
  61. u19 = true
  62. u10 = false
  63. u11 = false
  64. end
  65. end)
  66. v1.InputBegan:Connect(function(p21, p22) --[[Anonymous function at line 65]]
  67. --[[
  68. Upvalues:
  69. [1] = u6
  70. [2] = u19
  71. --]]
  72. if not p22 and (p21.KeyCode.Name == u6.Binds.Hand.Value or p21.KeyCode == Enum.KeyCode.ButtonL2) and u19 then
  73. switchHands()
  74. end
  75. end)
  76. v4.Dribble.OnClientEvent:Connect(function(p23) --[[Anonymous function at line 75]]
  77. --[[
  78. Upvalues:
  79. [1] = u6
  80. [2] = u9
  81. [3] = u16
  82. [4] = u15
  83. --]]
  84. if u6:FindFirstChild("Basketball") then
  85. u9.TargetFilter = workspace
  86. if p23 then
  87. u16:Stop()
  88. u15:Play()
  89. return
  90. end
  91. u15:Stop()
  92. u16:Play()
  93. end
  94. end)
  95. local u24 = u7:LoadAnimation(script:WaitForChild("DunkL"))
  96. local u25 = u7:LoadAnimation(script:WaitForChild("DunkR"))
  97. local u26 = u7:LoadAnimation(script:WaitForChild("DunkL1"))
  98. local u27 = u7:LoadAnimation(script:WaitForChild("DunkR1"))
  99. local function u34(p28) --[[Anonymous function at line 94]]
  100. --[[
  101. Upvalues:
  102. [1] = u3
  103. --]]
  104. local v29
  105. if typeof(p28) == "Instance" then
  106. v29 = u3:FindFirstChild(p28.Name) or p28
  107. else
  108. v29 = p28
  109. end
  110. local v30 = v29 and (v29:IsA("Player") and v29:FindFirstChild("statistics"))
  111. if v30 then
  112. local v31 = v30:GetAttribute("position")
  113. if typeof(v31) == "string" then
  114. return v31:upper()
  115. end
  116. end
  117. local v32 = typeof(p28) == "Instance" and p28 and p28 or nil
  118. if v32 and v32:FindFirstChild("statistics") then
  119. local v33 = v32.statistics:GetAttribute("position")
  120. if typeof(v33) == "string" then
  121. return v33:upper()
  122. end
  123. end
  124. return nil
  125. end
  126. local u35 = {
  127. ["PF"] = true,
  128. ["C"] = true
  129. }
  130. local function u45() --[[Anonymous function at line 135]]
  131. --[[
  132. Upvalues:
  133. [1] = u5
  134. [2] = u34
  135. [3] = u35
  136. [4] = u6
  137. [5] = u26
  138. [6] = u27
  139. [7] = u24
  140. [8] = u25
  141. --]]
  142. local v36 = u34(u5)
  143. local v37
  144. if v36 == nil then
  145. v37 = false
  146. else
  147. v37 = u35[v36] == true
  148. end
  149. if not v37 then
  150. local v38 = u34(u6)
  151. local v39
  152. if v38 == nil then
  153. v39 = false
  154. else
  155. v39 = u35[v38] == true
  156. end
  157. if not v39 then
  158. debounce = false
  159. return
  160. end
  161. end
  162. if u6 and u6:FindFirstChild("Basketball") then
  163. if u6.Basketball:IsA("Folder") then
  164. if u6.Basketball:FindFirstChild("Part") then
  165. local v40 = u5:FindFirstChild("SkillOwned")
  166. if v40 then
  167. v40 = v40:FindFirstChild("scoring"):FindFirstChild("Professional Dunker")
  168. end
  169. local v41, v42
  170. if v40 and (v40:IsA("BoolValue") and v40.Value) or false then
  171. v41 = u26
  172. v42 = u27
  173. else
  174. local v43 = u5:FindFirstChild("SkillOwned")
  175. if v43 then
  176. v43 = v43:FindFirstChild("scoring"):FindFirstChild("Rookie Dunker")
  177. end
  178. if v43 and (v43:IsA("BoolValue") and v43.Value) or false then
  179. v41 = u24
  180. v42 = u25
  181. else
  182. v41 = nil
  183. v42 = nil
  184. end
  185. end
  186. if v41 and v42 then
  187. local v44 = u6:WaitForChild("Humanoid")
  188. v44.JumpPower = 70
  189. v44.Jump = true
  190. if u6.Basketball.HandValue.Value == 0 then
  191. v42:Play()
  192. task.wait(1)
  193. v42:Stop()
  194. else
  195. v41:Play()
  196. task.wait(1)
  197. v41:Stop()
  198. end
  199. v44.JumpPower = 50
  200. debounce = false
  201. else
  202. debounce = false
  203. end
  204. else
  205. return
  206. end
  207. else
  208. return
  209. end
  210. else
  211. return
  212. end
  213. end
  214. v1.InputBegan:Connect(function(p46, p47) --[[Anonymous function at line 171]]
  215. --[[
  216. Upvalues:
  217. [1] = u6
  218. [2] = u45
  219. --]]
  220. if p47 then
  221. return
  222. elseif p46.KeyCode.Name == u6.Binds.Hand.Value or p46.KeyCode == Enum.KeyCode.ButtonL2 then
  223. switchHands()
  224. elseif p46.KeyCode.Name == "T" and (u6:FindFirstChild("Basketball") and (u6.Basketball:IsA("Folder") and (u6.Basketball:FindFirstChild("Part") and not debounce))) then
  225. debounce = true
  226. u45()
  227. local v48 = u6:FindFirstChildOfClass("Humanoid")
  228. if v48 and v48.JumpPower < 50 then
  229. v48.JumpPower = 50
  230. end
  231. end
  232. end)
  233. u7:GetPropertyChangedSignal("Jump"):Connect(function() --[[Anonymous function at line 221]]
  234. --[[
  235. Upvalues:
  236. [1] = u11
  237. [2] = u7
  238. --]]
  239. if u11 and u7.Jump then
  240. u7.Jump = false
  241. end
  242. end)
  243. u5.Backpack.ChildAdded:Connect(function(p49) --[[Anonymous function at line 235]]
  244. if p49:IsA("Tool") and p49.Name == "Basketball" then
  245. p49.RemoteEvent:FireServer()
  246. end
  247. end)
  248. u6.ChildRemoved:Connect(function(p50) --[[Anonymous function at line 241]]
  249. --[[
  250. Upvalues:
  251. [1] = u16
  252. [2] = u15
  253. [3] = u9
  254. --]]
  255. if p50.Name == "Basketball" and p50:IsA("Folder") then
  256. u16:Stop()
  257. u15:Stop()
  258. u9.TargetFilter = nil
  259. end
  260. end)
  261. for _, v51 in pairs(u6:GetChildren()) do
  262. v51.ChildAdded:Connect(function(p52) --[[Anonymous function at line 256]]
  263. if p52:IsA("BodyGyro") or p52:IsA("BodyVelocity") then
  264. wait(0.5)
  265. if p52 then
  266. p52:Destroy()
  267. end
  268. end
  269. end)
  270. end
  271. u7:GetPropertyChangedSignal("PlatformStand"):Connect(function() --[[Anonymous function at line 266]]
  272. --[[
  273. Upvalues:
  274. [1] = u7
  275. --]]
  276. if u7.PlatformStand == true then
  277. u7.PlatformStand = false
  278. end
  279. end)
  280. if v1.TouchEnabled and not v1.MouseEnabled then
  281. u5.PlayerGui:WaitForChild("Mobile").Frame.Handles.MouseButton1Down:Connect(function() --[[Anonymous function at line 275]]
  282. switchHands()
  283. end)
  284. end
  285. v1.InputBegan:Connect(function(p53, p54) --[[Anonymous function at line 282]]
  286. --[[
  287. Upvalues:
  288. [1] = u2
  289. --]]
  290. if not p54 then
  291. if p53.UserInputType == Enum.UserInputType.Keyboard then
  292. local v55 = p53.KeyCode.Name:lower()
  293. u2.remotes.bind:FireServer(v55)
  294. end
  295. end
  296. end)
  297. game.ReplicatedStorage.remotes.SetClientTime.OnClientEvent:Connect(function(p56) --[[Anonymous function at line 290]]
  298. if typeof(p56) == "number" then
  299. game.Lighting.ClockTime = math.clamp(p56, 0, 24)
  300. end
  301. end)
  302.  
Advertisement
Add Comment
Please, Sign In to add comment