1 | -- original https://raw.githubusercontent.com/yeerma/1/main/bot |
2 | -- changed somethings to make it work xd |
3 | -- loadstring(game:HttpGet("https://pastecode.dev/raw/jl97r5qd/paste1.txt"))() |
4 | getgenv().HowFastDanSchneiderCatchesYou = 1 |
5 | getgenv().HowMuchDanSchneiderTouchesYou = 15 |
6 | getgenv().HowMuchDanSchneiderTouchedYou = 25 |
7 | |
8 | local library = loadstring(game:HttpGet('https://raw.githubusercontent.com/bloodball/-back-ups-for-libs/main/wall%20v3'))() |
9 | |
10 | local w = library:CreateWindow("Sword Fight") |
11 | local b = w:CreateFolder("Bot") |
12 | |
13 | b:Slider("Roto Speed", { |
14 | min = 0, |
15 | max = 1, |
16 | precise = true, |
17 | }, function(value) |
18 | getgenv().HowFastDanSchneiderCatchesYou = value |
19 | end) |
20 | |
21 | b:Slider("Sword Ranga", { |
22 | min = 0, |
23 | max = 15, |
24 | precise = false, |
25 | }, function(value) |
26 | getgenv().HowMuchDanSchneiderTouchesYou = value |
27 | end) |
28 | |
29 | b:Slider("Attak Ranga", { |
30 | min = 0, |
31 | max = 10000, |
32 | precise = false, |
33 | }, function(value) |
34 | getgenv().HowMuchDanSchneiderTouchedYou = value |
35 | end) |
36 | |
37 | getgenv().Daddy_Catches_You = false |
38 | |
39 | local localPlayer = game:GetService("Players").LocalPlayer |
40 | local mouse = localPlayer:GetMouse() |
41 | |
42 | local function getClosestPlayer() |
43 | local closestPlayer = nil |
44 | local shortestDistance = getgenv().HowMuchDanSchneiderTouchedYou |
45 | |
46 | for _, player in pairs(game:GetService("Players"):GetPlayers()) do |
47 | if player.Name ~= localPlayer.Name then |
48 | local character = player.Character |
49 | if character and character:FindFirstChild("Humanoid") and character.Humanoid.Health > 0 and character:FindFirstChild("HumanoidRootPart") then |
50 | local distance = (character.HumanoidRootPart.Position - localPlayer.Character.HumanoidRootPart.Position).magnitude |
51 | if distance < shortestDistance then |
52 | closestPlayer = player |
53 | shortestDistance = distance |
54 | end |
55 | end |
56 | end |
57 | end |
58 | return closestPlayer |
59 | end |
60 | |
61 | local function onKeyPress(input) |
62 | if input.KeyCode == Enum.KeyCode.X then |
63 | getgenv().Daddy_Catches_You = not getgenv().Daddy_Catches_You |
64 | print("Daddy_Catches_You toggled to:", getgenv().Daddy_Catches_You) |
65 | end |
66 | end |
67 | |
68 | local function setupCharacter(character) |
69 | local humanoid = character:WaitForChild("Humanoid") |
70 | humanoid:SetStateEnabled(Enum.HumanoidStateType.FallingDown, false) |
71 | humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll, false) |
72 | |
73 | game:GetService("UserInputService").InputBegan:Connect(onKeyPress) |
74 | |
75 | game:GetService("RunService").RenderStepped:Connect(function() |
76 | if getgenv().Daddy_Catches_You then |
77 | spawn(function() |
78 | local tool = localPlayer.Character and localPlayer.Character:FindFirstChildOfClass("Tool") |
79 | if tool and tool:FindFirstChild("Handle") then |
80 | tool:Activate() |
81 | local players = game.Players:GetPlayers() |
82 | for i = 2, #players do |
83 | local character = players[i].Character |
84 | if character and character:FindFirstChild("Humanoid") and character.Humanoid.Health > 0 and character:FindFirstChild("HumanoidRootPart") and localPlayer:DistanceFromCharacter(character.HumanoidRootPart.Position) <= getgenv().HowMuchDanSchneiderTouchesYou then |
85 | for _, part in pairs(character:GetChildren()) do |
86 | if part:IsA("BasePart") then |
87 | firetouchinterest(tool.Handle, part, 0) |
88 | firetouchinterest(tool.Handle, part, 1) |
89 | end |
90 | end |
91 | end |
92 | end |
93 | end |
94 | end) |
95 | end |
96 | end) |
97 | end |
98 | |
99 | localPlayer.CharacterAdded:Connect(function(character) |
100 | setupCharacter(character) |
101 | character:WaitForChild("Humanoid").Died:Connect(function() |
102 | getgenv().Daddy_Catches_You = false -- Reset on death |
103 | end) |
104 | end) |
105 | |
106 | if localPlayer.Character then |
107 | setupCharacter(localPlayer.Character) |
108 | end |
109 | |
110 | while true do |
111 | wait() |
112 | local closestPlayer = getClosestPlayer() |
113 | if closestPlayer and getgenv().Daddy_Catches_You then |
114 | local targetPart = closestPlayer.Character.HumanoidRootPart |
115 | local playerPart = localPlayer.Character.HumanoidRootPart |
116 | localPlayer.Character.Humanoid.AutoRotate = false |
117 | local lookAt = CFrame.new(playerPart.Position, Vector3.new(targetPart.Position.X, playerPart.Position.Y, targetPart.Position.Z)) |
118 | playerPart.CFrame = playerPart.CFrame:Lerp(lookAt, getgenv().HowFastDanSchneiderCatchesYou) |
119 | localPlayer.Character.Humanoid:MoveTo(targetPart.Position + Vector3.new(-3, 0, 0)) |
120 | if closestPlayer.Character.Humanoid:GetState() == Enum.HumanoidStateType.Freefall then |
121 | localPlayer.Character.Humanoid.Jump = true |
122 | end |
123 | else |
124 | localPlayer.Character.Humanoid.AutoRotate = true |
125 | end |
126 | end |