Professional Documents
Culture Documents
do -- [[Auto Parry]]
local function autoParry(child)
if client.Character:FindFirstChildOfClass("Tool") and
client.Character:FindFirstChildOfClass("Tool"):FindFirstChild("Hitboxes") and
child:IsA("Sound") and not iskeydown(Enum.KeyCode.C) and child:IsA("Sound") and
(chr.HumanoidRootPart.Position -
client.Character.HumanoidRootPart.Position).Magnitude < Magnitude then
local looking = islooking(chr, 0.25)
if looking then
keyclick(Enum.KeyCode.F)
else
lookAt(chr)
keyclick(Enum.KeyCode.F)
end
end
end
if tool.Hitboxes:FindFirstChild("Hitbox") then
print("applied")
tool.Hitboxes.Hitbox.ChildAdded:Connect(autoParry)
elseif tool.Hitboxes:FindFirstChild("Weapon1Hitbox") and
tool.Hitboxes:FindFirstChild("Weapon2Hitbox") then
print("applied")
tool.Hitboxes.Weapon1Hitbox.ChildAdded:Connect(autoParry)
tool.Hitboxes.Weapon2Hitbox.ChildAdded:Connect(autoParry)
end
end
do -- [[Anti Parry]]
local function antiParry(child)
if child:IsA("Sound") and
client.Character:FindFirstChildOfClass("Tool") and
client.Character:FindFirstChildOfClass("Tool"):FindFirstChild("Hitboxes") and
(chr.HumanoidRootPart.Position -
client.Character.HumanoidRootPart.Position).Magnitude < Magnitude then
local looking = islooking(chr, 0.25)
if looking then
local tool =
client.Character:FindFirstChildOfClass("Tool")
client.Character.Humanoid:UnequipTools()
chr.SemiTransparentShield:GetPropertyChangedSignal("Transparency"):Wait()
client.Character.Humanoid:EquipTool(tool)
end
end
end
chr.SemiTransparentShield.ChildAdded:Connect(antiParry)
end
end