sdfsfsd

FE SWORD BOT

Jan 15th, 2023 (edited)
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.30 KB | None | 0 0
  1. game:GetService("StarterGui"):SetCore("SendNotification", {
  2. Title = "ATTENTION";
  3. Text = "PRESS X IF YOU WANT TO ACTIVATE";
  4. Icon = "";
  5. Duration = 10;
  6. Button1 = "Yes Sir";
  7. })
  8.  
  9. getgenv().i_said_right_foot_creep = false
  10.  
  11.  
  12. game:GetService("RunService").RenderStepped:Connect(function()
  13.  
  14. if i_said_right_foot_creep == true then
  15.  
  16. spawn(function()
  17.  
  18. local tool = game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool")
  19. if tool and tool:FindFirstChild("Handle") then
  20. tool:Activate()
  21.  
  22. local p = game.Players:GetPlayers()
  23. for i = 2, #p do local v = p[i].Character
  24. if v and v:FindFirstChild("Humanoid") and v.Humanoid.Health > 0 and v:FindFirstChild("HumanoidRootPart") and game.Players.LocalPlayer:DistanceFromCharacter(v.HumanoidRootPart.Position) <= 15 then
  25.  
  26. for i,v in next, v:GetChildren() do
  27. if v:IsA("BasePart") then
  28. firetouchinterest(tool.Handle,v,0)
  29. firetouchinterest(tool.Handle,v,1)
  30.  
  31. end
  32. end
  33. end
  34. end
  35. end
  36. end)
  37. end
  38. end)
  39. local localPlayer = game:GetService("Players").LocalPlayer
  40. local currentCamera = game:GetService("Workspace").CurrentCamera
  41. local mouse = localPlayer:GetMouse()
  42.  
  43. local function getClosestPlayer()
  44. local closestPlayer = nil
  45. local shortestDistance = math.huge
  46.  
  47. for i, v in pairs(game:GetService("Players"):GetPlayers()) do
  48. if v.Name ~= localPlayer.Name then
  49. if v.Character and v.Character:FindFirstChild("Humanoid") and v.Character.Humanoid.Health ~= 0 and v.Character:FindFirstChild("HumanoidRootPart") and v.Character:FindFirstChild("Head") then
  50. if v.Character:FindFirstChildOfClass("ForceField") then
  51. else
  52.  
  53.  
  54. local ray = Ray.new(v.Character:FindFirstChild("HumanoidRootPart").Position, Vector3.new(0,-100000,0))
  55. local Hit = game:GetService("Workspace"):FindPartOnRay(ray, v.Character)
  56.  
  57. if Hit then
  58.  
  59.  
  60.  
  61. local magnitude = (v.Character.HumanoidRootPart.Position - localPlayer.Character.HumanoidRootPart.Position).magnitude
  62.  
  63. if magnitude < shortestDistance then
  64. closestPlayer = v
  65. shortestDistance = magnitude
  66. end
  67. end
  68. end
  69. end
  70. end
  71. end
  72. return closestPlayer
  73. end
  74.  
  75. local stateType = Enum.HumanoidStateType
  76.  
  77. local character = game.Players.LocalPlayer.Character
  78. local humanoid = character:WaitForChild("Humanoid")
  79.  
  80. humanoid:SetStateEnabled(stateType.FallingDown, false)
  81. humanoid:SetStateEnabled(stateType.Ragdoll, false)
  82.  
  83. while true do
  84. wait()
  85. spawn(function()
  86. spawn(function()
  87.  
  88. if executed then
  89. else
  90. getgenv().executed = true
  91. spawn(function()
  92.  
  93. getgenv().i_said_right_foot_creep = false
  94. getgenv().ssss = game.Players.LocalPlayer:GetMouse()
  95.  
  96. ssss.KeyDown:connect(function(key)
  97. if key == "x" then
  98. if i_said_right_foot_creep == false then
  99. getgenv().i_said_right_foot_creep = true
  100. game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass('Humanoid').AutoRotate = false
  101. else
  102.  
  103. getgenv().i_said_right_foot_creep = false
  104. game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass('Humanoid').AutoRotate = true
  105.  
  106. end
  107. end
  108. end)
  109.  
  110. end)
  111. end
  112. end)
  113. local nigger = getClosestPlayer()
  114. if game:GetService("Players").LocalPlayer.Character.PrimaryPart and getClosestPlayer() ~= nil and i_said_right_foot_creep == true then
  115.  
  116. local TargetPart = getClosestPlayer().Character.HumanoidRootPart
  117. local Part = game.Players.LocalPlayer.Character.HumanoidRootPart
  118. local RotateX, RotateY, RotateZ = 0, 0, 0
  119.  
  120. Part.CFrame = CFrame.new(Part.Position, TargetPart.Position) * CFrame.Angles(math.rad(0), math.rad(25), math.rad(0))
  121.  
  122. game:GetService("Players").LocalPlayer.Character.Humanoid:MoveTo(getClosestPlayer().Character.HumanoidRootPart.CFrame * Vector3.new(-3, 0, 0))
  123. if getClosestPlayer().Character.Humanoid:GetState() == Enum.HumanoidStateType.Freefall then
  124. game.Players.LocalPlayer.Character.Humanoid.Jump = true
  125. end
  126.  
  127.  
  128.  
  129.  
  130. end
  131.  
  132. end)
  133. end
  134. local stateType = Enum.HumanoidStateType
  135.  
  136. local character = game.Players.LocalPlayer.Character
  137. local humanoid = character:WaitForChild("Humanoid")
  138.  
  139. humanoid:SetStateEnabled(stateType.FallingDown, false)
  140. humanoid:SetStateEnabled(stateType.Ragdoll, false)
  141.  
  142.  
Add Comment
Please, Sign In to add comment