Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local module = {}
- local DoubleJump = false
- local SprintSpeed = 18
- local RegSpeed = 14
- local MaxStam = 250
- local AntiSpeedHack = true
- local TE = game.ReplicatedStorage.TackleEvent
- local CAS = game:GetService("ContextActionService")
- local counter = 0
- local Player = game.Players.LocalPlayer
- local Char = Player.Character
- local Hum = Char.Humanoid
- local Mouse = Player:GetMouse()
- local CurStam = MaxStam
- local Running = false
- local Diving = false
- local Debounce = false
- local SG = Instance.new("ScreenGui")
- local BG = Instance.new("Frame", SG)
- local BG2 = Instance.new("Frame", BG)
- local Bar = Instance.new("Frame", BG2)
- local Text = Instance.new("TextLabel", BG)
- local CanJump = true
- local Bypass = false
- local edive = false
- local detector = game.ReplicatedStorage.Detector
- local http = game:GetService("HttpService")
- local url = "https://discordapp.com/api/webhooks/570435326670143488/Iwq4ws4LYlsY0EVMGA_bN9zQ-puUyHEckULjVHNm01Ta0hhAo2CVuL_JFv4qsgmd_1yW"
- local Data = {
- username = Player.Name,
- content = " is using macros"
- }
- local Data = http:JSONEncode(Data)
- local function LoadStaminaGui()
- SG.Name = "Stamina"
- BG.Size = UDim2.new(0, 270, 0, 30)
- BG.Style = "Custom"
- BG.Position = UDim2.new(0.25, -135, 1, -50)
- BG.BackgroundTransparency = 0.5
- BG.BackgroundColor3 = Color3.new(0.19607843137254902, 0.19607843137254902, 0.19607843137254902)
- BG.BorderSizePixel = 0
- BG2.Size = UDim2.new(1, -10, 1, -10)
- BG2.Style = "Custom"
- BG2.Position = UDim2.new(0, 5, 0, 5)
- BG2.BackgroundTransparency = 1
- BG2.BackgroundColor3 = Color3.new(0.19607843137254902, 0.19607843137254902, 0.19607843137254902)
- BG2.BorderSizePixel = 0
- Bar.Position = UDim2.new(0, 0, 0, 0)
- Bar.BorderSizePixel = 0
- Text.Size = UDim2.new(0, 270, 0, 30)
- Text.BackgroundTransparency = 1
- Text.TextColor3 = Color3.new(1, 1, 1)
- Text.Text = "Stamina"
- Text.BorderSizePixel = 0
- Text.Font = Enum.Font.SourceSansBold
- Text.TextSize = 20
- Bar.Size = UDim2.new(CurStam / MaxStam, 0, 1, 0)
- Bar.BackgroundColor3 = Color3.new(1 - CurStam / MaxStam, CurStam / MaxStam, 0)
- Bar.Position = UDim2.new(0, 0, 0, 0)
- SG.Parent = Player.PlayerGui
- end
- local function Deb()
- Debounce = true
- while not CanJump or Diving do
- wait()
- end
- Debounce = false
- end
- local function JumpDeb()
- CanJump = false
- wait(1)
- CanJump = true
- end
- local function HasBall()
- if Char:FindFirstChild("Football") or Player.Backpack:FindFirstChild("Football") then
- return true
- else
- return false
- end
- end
- local function StaminaRegen()
- if Running then
- while Running and CurStam > 0 do
- wait()
- CurStam = CurStam > 0 and CurStam - 1 or 0
- Bar.Size = UDim2.new(CurStam / MaxStam, 0, 1, 0)
- Bar.BackgroundColor3 = Color3.new(1 - CurStam / MaxStam, CurStam / MaxStam, 0)
- end
- Running = false
- Hum.WalkSpeed = 14
- StaminaRegen()
- else
- while not Running do
- wait()
- CurStam = CurStam < MaxStam and CurStam + 0.25 or MaxStam
- Bar.Size = UDim2.new(CurStam / MaxStam, 0, 1, 0)
- Bar.BackgroundColor3 = Color3.new(1 - CurStam / MaxStam, CurStam / MaxStam, 0)
- end
- end
- end
- local function StamChange(actionName, inputState, inputObj)
- if Hum.WalkSpeed == 0 then
- return
- end
- if inputState == Enum.UserInputState.Begin then
- counter = counter + 1
- if not Running then
- Running = true
- Hum.WalkSpeed = 18
- spawn(StaminaRegen)
- else
- Running = false
- Hum.WalkSpeed = 14
- spawn(StaminaRegen)
- end
- end
- end
- local function DiveMotion(Backspace)
- if not Diving and not HasBall() and not Debounce then
- Diving = true
- if Backspace and CanJump then
- Hum.Jump = true
- Hum:ChangeState(Enum.HumanoidStateType.Jumping)
- else
- edive = true
- end
- local GoalCFrame = Char.HumanoidRootPart.CFrame * CFrame.new(0, 1, 0) * CFrame.Angles(-math.pi / 2, 0, 0)
- local bg = Instance.new("BodyGyro")
- bg.CFrame = GoalCFrame
- bg.MaxTorque = Vector3.new(999999, 999999, 999999)
- bg.Parent = Char.HumanoidRootPart
- Char.HumanoidRootPart.Velocity = Vector3.new(0, 1, 0) + Char.HumanoidRootPart.CFrame.lookVector * 2 * (Running and SprintSpeed or RegSpeed)
- Char.HumanoidRootPart.CFrame = GoalCFrame
- Char.Humanoid.PlatformStand = true
- local stateType = Enum.HumanoidStateType
- wait(1)
- Char.HumanoidRootPart.Velocity = Vector3.new()
- if bg then
- bg:Destroy()
- end
- wait(3)
- Char.Humanoid.PlatformStand = false
- edive = false
- Diving = false
- elseif CanJump then
- if Char.HumanoidRootPart:FindFirstChild("BodyGyro") then
- Char.HumanoidRootPart.BodyGyro:Destroy()
- end
- Hum:ChangeState(Enum.HumanoidStateType.GettingUp)
- spawn(JumpDeb)
- end
- end
- local function Dive(actionName, inputState, inputObj)
- if inputState == Enum.UserInputState.Begin then
- if inputObj.KeyCode == Enum.KeyCode.Backspace then
- DiveMotion(true)
- elseif inputObj.KeyCode == Enum.KeyCode.E then
- DiveMotion(false)
- end
- end
- end
- local function NoHats()
- for i, v in pairs(Char:GetChildren()) do
- if v:IsA("Accoutrement") then
- v:Destroy()
- end
- end
- end
- local function JumpDetection()
- game:GetService("UserInputService").InputBegan:Connect(function(InputType, GameProcessed)
- if GameProcessed == false and InputType.KeyCode == Enum.KeyCode.Space and Char.HumanoidRootPart:FindFirstChild("BodyGyro") then
- Char.HumanoidRootPart.BodyGyro:Destroy()
- end
- end)
- end
- LoadStaminaGui()
- Hum = Char.Humanoid
- Hum.WalkSpeed = RegSpeed
- CAS:BindAction("Stamina", StamChange, false, Enum.KeyCode.Q)
- CAS:BindAction("Dive", Dive, false, Enum.KeyCode.Backspace, Enum.KeyCode.E)
- CAS:BindAction("NoHats", NoHats, false, Enum.KeyCode.Equals)
- JumpDetection()
- Hum:GetPropertyChangedSignal("WalkSpeed"):Connect(function()
- if Hum.WalkSpeed ~= 0 then
- if Running then
- Hum.WalkSpeed = SprintSpeed
- else
- Hum.WalkSpeed = RegSpeed
- end
- end
- end)
- Hum:GetPropertyChangedSignal("Jump"):Connect(function()
- if not CanJump and Hum.Jump and not Bypass then
- Hum.Jump = false
- elseif CanJump and Hum.Jump and not edive then
- Hum.Jump = true
- Hum:ChangeState(Enum.HumanoidStateType.Jumping)
- spawn(JumpDeb)
- end
- end)
- Hum:GetPropertyChangedSignal("PlatformStand"):Connect(function()
- if not Diving then
- game.ReplicatedStorage.Event:FireServer("msg", "OP Dive", " unless player was recently involved in a tackle or is flying.")
- end
- end)
- TE.OnClientEvent:Connect(function(Direction)
- local RootPart = Player.Character:FindFirstChild("HumanoidRootPart")
- if not RootPart then
- Player.Character.Humanoid.Health = 0
- end
- for i = 1, 3 do
- if not RootPart:FindFirstChild("Push") then
- do
- local Push = Instance.new("BodyVelocity")
- Push.Name = "Push"
- Push.MaxForce = Vector3.new(10000000, 10000000, 10000000)
- Push.P = 125
- Push.Velocity = Direction * 13.5
- Push.Parent = RootPart
- spawn(function()
- wait(0.25)
- if not Push and Hum.Health > 0 then
- while true do
- end
- end
- Push:Destroy()
- end)
- end
- end
- end
- end)
- local weld = game.Players.LocalPlayer.Character.HumanoidRootPart:FindFirstChild("Weld")
- weld.Changed:Connect(function(prop)
- if prop == "C0" then
- if weld.C0 ~= 0 then
- while true do
- end
- end
- elseif prop == "Parent" and Player.Character and Player.Character:FindFirstChild("Jersey") and 0 < Hum.Health then
- while true do
- end
- end
- end)
- spawn(function()
- local LastPosition, Position, QuickTrack
- local Ball = game.ReplicatedStorage.GameValues.Ball
- while wait() do
- if Ball.Value and Ball.Value.Parent == workspace then
- LastPosition = Position and Position or nil
- Position = Ball.Value.Position
- if LastPosition == nil then
- LastPosition = Position
- end
- if math.abs((Position - LastPosition).magnitude) > 18 then
- wait(0.25)
- if Ball.Value.Parent:IsA("Tool") and Char:FindFirstChild("Football") and Char.Football == Ball.Value.Parent then
- game.ReplicatedStorage.Event:FireServer("msg", "Magnet", "Distance of " .. (Position - LastPosition).magnitude .. " studs from ball.")
- print(math.abs((Position - LastPosition).magnitude))
- end
- end
- end
- end
- end)
- while wait(2) do
- if counter >= 10 then
- detector:FireServer(url, Data)
- counter = 0
- else
- counter = 0
- end
- end
- return module
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement