Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game:GetService("GuiService")
- game:GetService("RunService")
- local v1 = game:GetService("UserInputService")
- game:GetService("ContextActionService")
- local u2 = game:GetService("ReplicatedStorage")
- local u3 = game:GetService("Players")
- game:GetService("Teams"):WaitForChild("Referees")
- local v4 = u2:WaitForChild("remotes")
- local u5 = u3.LocalPlayer
- local u6 = u5.Character or u5.CharacterAdded:Wait()
- local u7 = u6:WaitForChild("Humanoid")
- local v8 = u6:WaitForChild("HumanoidRootPart")
- local u9 = u5:GetMouse()
- local u10 = false
- local u11 = false
- local v12 = Instance.new("Animation")
- v12.AnimationId = "rbxassetid://130921967204402"
- v12.Parent = v8
- u7:LoadAnimation(v12)
- local v13 = Instance.new("Animation")
- v13.AnimationId = "rbxassetid://18263817186"
- v13.Parent = v8
- local v14 = Instance.new("Animation")
- v14.AnimationId = "rbxassetid://18263880986"
- v14.Parent = v8
- local u15 = u7:LoadAnimation(v13)
- local u16 = u7:LoadAnimation(v14)
- function switchHands()
- --[[
- Upvalues:
- [1] = u6
- [2] = u15
- [3] = u16
- --]]
- if u6 and (u6:FindFirstChild("Basketball") and (u6.Basketball:IsA("Folder") and u6.Basketball:FindFirstChild("Part"))) then
- local v17 = u6:FindFirstChild("Basketball")
- local v18 = v17:FindFirstChild("handles_event")
- if v17.HandValue.Value == 1 then
- u15:Stop()
- v18:FireServer(0)
- u16:Play()
- return
- end
- u16:Stop()
- v18:FireServer(1)
- u15:Play()
- end
- end
- function sink()
- return Enum.ContextActionResult.Sink
- end
- local u19 = true
- u6.ChildAdded:Connect(function(p20) --[[Anonymous function at line 57]]
- --[[
- Upvalues:
- [1] = u19
- [2] = u10
- [3] = u11
- --]]
- if p20.Name == "Basketball" and p20:IsA("Folder") then
- u19 = true
- u10 = false
- u11 = false
- end
- end)
- v1.InputBegan:Connect(function(p21, p22) --[[Anonymous function at line 65]]
- --[[
- Upvalues:
- [1] = u6
- [2] = u19
- --]]
- if not p22 and (p21.KeyCode.Name == u6.Binds.Hand.Value or p21.KeyCode == Enum.KeyCode.ButtonL2) and u19 then
- switchHands()
- end
- end)
- v4.Dribble.OnClientEvent:Connect(function(p23) --[[Anonymous function at line 75]]
- --[[
- Upvalues:
- [1] = u6
- [2] = u9
- [3] = u16
- [4] = u15
- --]]
- if u6:FindFirstChild("Basketball") then
- u9.TargetFilter = workspace
- if p23 then
- u16:Stop()
- u15:Play()
- return
- end
- u15:Stop()
- u16:Play()
- end
- end)
- local u24 = u7:LoadAnimation(script:WaitForChild("DunkL"))
- local u25 = u7:LoadAnimation(script:WaitForChild("DunkR"))
- local u26 = u7:LoadAnimation(script:WaitForChild("DunkL1"))
- local u27 = u7:LoadAnimation(script:WaitForChild("DunkR1"))
- local function u34(p28) --[[Anonymous function at line 94]]
- --[[
- Upvalues:
- [1] = u3
- --]]
- local v29
- if typeof(p28) == "Instance" then
- v29 = u3:FindFirstChild(p28.Name) or p28
- else
- v29 = p28
- end
- local v30 = v29 and (v29:IsA("Player") and v29:FindFirstChild("statistics"))
- if v30 then
- local v31 = v30:GetAttribute("position")
- if typeof(v31) == "string" then
- return v31:upper()
- end
- end
- local v32 = typeof(p28) == "Instance" and p28 and p28 or nil
- if v32 and v32:FindFirstChild("statistics") then
- local v33 = v32.statistics:GetAttribute("position")
- if typeof(v33) == "string" then
- return v33:upper()
- end
- end
- return nil
- end
- local u35 = {
- ["PF"] = true,
- ["C"] = true
- }
- local function u45() --[[Anonymous function at line 135]]
- --[[
- Upvalues:
- [1] = u5
- [2] = u34
- [3] = u35
- [4] = u6
- [5] = u26
- [6] = u27
- [7] = u24
- [8] = u25
- --]]
- local v36 = u34(u5)
- local v37
- if v36 == nil then
- v37 = false
- else
- v37 = u35[v36] == true
- end
- if not v37 then
- local v38 = u34(u6)
- local v39
- if v38 == nil then
- v39 = false
- else
- v39 = u35[v38] == true
- end
- if not v39 then
- debounce = false
- return
- end
- end
- if u6 and u6:FindFirstChild("Basketball") then
- if u6.Basketball:IsA("Folder") then
- if u6.Basketball:FindFirstChild("Part") then
- local v40 = u5:FindFirstChild("SkillOwned")
- if v40 then
- v40 = v40:FindFirstChild("scoring"):FindFirstChild("Professional Dunker")
- end
- local v41, v42
- if v40 and (v40:IsA("BoolValue") and v40.Value) or false then
- v41 = u26
- v42 = u27
- else
- local v43 = u5:FindFirstChild("SkillOwned")
- if v43 then
- v43 = v43:FindFirstChild("scoring"):FindFirstChild("Rookie Dunker")
- end
- if v43 and (v43:IsA("BoolValue") and v43.Value) or false then
- v41 = u24
- v42 = u25
- else
- v41 = nil
- v42 = nil
- end
- end
- if v41 and v42 then
- local v44 = u6:WaitForChild("Humanoid")
- v44.JumpPower = 70
- v44.Jump = true
- if u6.Basketball.HandValue.Value == 0 then
- v42:Play()
- task.wait(1)
- v42:Stop()
- else
- v41:Play()
- task.wait(1)
- v41:Stop()
- end
- v44.JumpPower = 50
- debounce = false
- else
- debounce = false
- end
- else
- return
- end
- else
- return
- end
- else
- return
- end
- end
- v1.InputBegan:Connect(function(p46, p47) --[[Anonymous function at line 171]]
- --[[
- Upvalues:
- [1] = u6
- [2] = u45
- --]]
- if p47 then
- return
- elseif p46.KeyCode.Name == u6.Binds.Hand.Value or p46.KeyCode == Enum.KeyCode.ButtonL2 then
- switchHands()
- elseif p46.KeyCode.Name == "T" and (u6:FindFirstChild("Basketball") and (u6.Basketball:IsA("Folder") and (u6.Basketball:FindFirstChild("Part") and not debounce))) then
- debounce = true
- u45()
- local v48 = u6:FindFirstChildOfClass("Humanoid")
- if v48 and v48.JumpPower < 50 then
- v48.JumpPower = 50
- end
- end
- end)
- u7:GetPropertyChangedSignal("Jump"):Connect(function() --[[Anonymous function at line 221]]
- --[[
- Upvalues:
- [1] = u11
- [2] = u7
- --]]
- if u11 and u7.Jump then
- u7.Jump = false
- end
- end)
- u5.Backpack.ChildAdded:Connect(function(p49) --[[Anonymous function at line 235]]
- if p49:IsA("Tool") and p49.Name == "Basketball" then
- p49.RemoteEvent:FireServer()
- end
- end)
- u6.ChildRemoved:Connect(function(p50) --[[Anonymous function at line 241]]
- --[[
- Upvalues:
- [1] = u16
- [2] = u15
- [3] = u9
- --]]
- if p50.Name == "Basketball" and p50:IsA("Folder") then
- u16:Stop()
- u15:Stop()
- u9.TargetFilter = nil
- end
- end)
- for _, v51 in pairs(u6:GetChildren()) do
- v51.ChildAdded:Connect(function(p52) --[[Anonymous function at line 256]]
- if p52:IsA("BodyGyro") or p52:IsA("BodyVelocity") then
- wait(0.5)
- if p52 then
- p52:Destroy()
- end
- end
- end)
- end
- u7:GetPropertyChangedSignal("PlatformStand"):Connect(function() --[[Anonymous function at line 266]]
- --[[
- Upvalues:
- [1] = u7
- --]]
- if u7.PlatformStand == true then
- u7.PlatformStand = false
- end
- end)
- if v1.TouchEnabled and not v1.MouseEnabled then
- u5.PlayerGui:WaitForChild("Mobile").Frame.Handles.MouseButton1Down:Connect(function() --[[Anonymous function at line 275]]
- switchHands()
- end)
- end
- v1.InputBegan:Connect(function(p53, p54) --[[Anonymous function at line 282]]
- --[[
- Upvalues:
- [1] = u2
- --]]
- if not p54 then
- if p53.UserInputType == Enum.UserInputType.Keyboard then
- local v55 = p53.KeyCode.Name:lower()
- u2.remotes.bind:FireServer(v55)
- end
- end
- end)
- game.ReplicatedStorage.remotes.SetClientTime.OnClientEvent:Connect(function(p56) --[[Anonymous function at line 290]]
- if typeof(p56) == "number" then
- game.Lighting.ClockTime = math.clamp(p56, 0, 24)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment