Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i,v in next, debug.getregistry() do
- if type(v) == 'function' then
- local yo = debug.getupvalues(v)
- if yo and type(yo) == 'table' then
- if yo.Attributes then
- local hi = yo.Attributes;
- hi.freethrow = 99999999999;
- hi.postscorer = 99999999999;
- hi.ballspeed = 99999999999;
- hi.jump = 99999999999;
- hi.steal = 99999999999;
- hi.shotcontest = 99999999999;
- hi["2pointer"] = 99999999999;
- hi["3pointer"] = 99999999999;
- hi.passing = 99999999999;
- hi.layup = 99999999999;
- hi.strength = 99999999999;
- hi.dunk = 99999999999;
- hi.speed = 99999999999;
- hi.handles = 99999999999;
- hi.movingshot = 99999999999;
- hi.defense = 99999999999;
- hi.stamina = 99999999999;
- end;
- end;
- end;
- end;
- down = false
- velocity = Instance.new("BodyVelocity")
- velocity.maxForce = Vector3.new(100000, 0, 100000)
- ---vv Use that to change the speed v
- local speed = 50
- gyro = Instance.new("BodyGyro")
- gyro.maxTorque = Vector3.new(100000, 0, 100000)
- local hum = game.Players.LocalPlayer.Character.Humanoid
- function onButton1Down(mouse)
- down = true
- velocity.Parent = game.Players.LocalPlayer.Character.UpperTorso
- velocity.velocity = (hum.MoveDirection) * speed
- gyro.Parent = game.Players.LocalPlayer.Character.UpperTorso
- while down do
- if not down then break end
- velocity.velocity = (hum.MoveDirection) * speed
- local refpos = gyro.Parent.Position + (gyro.Parent.Position - workspace.CurrentCamera.CoordinateFrame.p).unit * 5
- gyro.cframe = CFrame.new(gyro.Parent.Position, Vector3.new(refpos.x, gyro.Parent.Position.y, refpos.z))
- wait(0.1)
- end
- end
- function onButton1Up(mouse)
- velocity.Parent = nil
- gyro.Parent = nil
- down = false
- end
- --To Change the key in those 2 lines, replace the "q" with your desired key
- function onSelected(mouse)
- mouse.KeyDown:connect(function(k) if k:lower()=="b"then onButton1Down(mouse)end end)
- mouse.KeyUp:connect(function(k) if k:lower()=="b"then onButton1Up(mouse)end end)
- end
- onSelected(game.Players.LocalPlayer:GetMouse())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement