BOXING BETA Script | AUTODODGE

[ad_1]

Created by Aidez

Features:

repeat wait() until game.Players.LocalPlayer ~= nil
repeat wait() until game.ReplicatedStorage:FindFirstChild("ClientTemplates")
repeat wait() until game:IsLoaded()

local HostileAnimations = {}
local HostileNames = {"Jab","Hook","Uppercut","Ultimate"}
for i,v in pairs(game.ReplicatedStorage.ClientTemplates:GetDescendants()) do
    if v:IsA("Animation") and not table.find(HostileAnimations, v.AnimationId) then
        for x = 1,#HostileNames do
            if string.find(v.Name, HostileNames[x]) then
                table.insert(HostileAnimations, v.AnimationId)
            end
        end
    end
end

for i,v in pairs(game.Players:GetPlayers()) do
    if v.Character ~= nil and v ~= game.Players.LocalPlayer then
        if v.Character:FindFirstChild("Humanoid") then
            v.Character.Humanoid.AnimationPlayed:Connect(function(track)
                if table.find(HostileAnimations, track.Animation.AnimationId) and v.Character:FindFirstChild("HumanoidRootPart") then
                    if game.Players.LocalPlayer.Character.Parent == game.Workspace and game.Players.LocalPlayer:DistanceFromCharacter(v.Character.HumanoidRootPart.Position) < 20 then
                        wait()
                        game:GetService("ReplicatedStorage").RemoteEvents.PlayerDodgeRemote:FireServer(true)
                    elseif game.Players.LocalPlayer:DistanceFromCharacter(v.Character.HumanoidRootPart.Position) < 20 and v.Character.Parent.Parent == game.Players.LocalPlayer.Character.Parent.Parent then
                        wait()
                        --if math.random(1,2) == 1 then
                            game:GetService("ReplicatedStorage").RemoteEvents.PlayerDodgeRemote:FireServer(true)
                        --end
                    end
                end
            end)
        end
    end
    if v ~= game.Players.LocalPlayer then
        v.CharacterAdded:Connect(function(char)
            repeat wait() until char:FindFirstChild("Humanoid")
            if char:FindFirstChild("Humanoid") then
                char.Humanoid.AnimationPlayed:Connect(function(track)
                    if table.find(HostileAnimations, track.Animation.AnimationId) and char:FindFirstChild("HumanoidRootPart") then
                        if game.Players.LocalPlayer.Character.Parent == game.Workspace and game.Players.LocalPlayer:DistanceFromCharacter(char.HumanoidRootPart.Position) < 20 then
                            wait()
                            game:GetService("ReplicatedStorage").RemoteEvents.PlayerDodgeRemote:FireServer(true)
                        elseif game.Players.LocalPlayer:DistanceFromCharacter(char.HumanoidRootPart.Position) < 20 and char.Parent.Parent == game.Players.LocalPlayer.Character.Parent.Parent then
                            wait()
                            --if math.random(1,2) == 1 then
                                game:GetService("ReplicatedStorage").RemoteEvents.PlayerDodgeRemote:FireServer(true)
                            --end
                        end
                    end
                end)
            end
        end)
    end
end

ENJOY!

Warning: DO NOT DOWNLOAD anything from this page, you’re only here to copy the script!

[ad_2]

123movies 123movie thesoap2day soap 2 day 123movies movies123 123movies