Advertisement
SigmaBoy456

Roblox FE kill all script GUI v3

Jul 19th, 2024 (edited)
4,907
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.28 KB | None | 0 0
  1. -- Script Description:
  2. -- This script is designed for use in Roblox games and manipulates players' positions using client-sided CFrame adjustments.
  3. -- It allows you to move players to a specified range in front of your character and set their walk speed to 0.
  4. -- what does this mean it mean like you can use tool and thing for example you have sword and gun in game Which this script made for Manipulate Hitbox client sided
  5. -- you can use those tool to Damage/hit/kill player that Bringed to you
  6. --even though this script is client sided but even is client sided other player can still see themselves died/Hitted/damaged
  7. -- This may not work in games with robust anti-cheat systems or hitbox checks.
  8.  
  9. -- Setting
  10. local range = -10  -- Adjust how far players are brought in front of you. Use negative values to bring them closer.
  11.  
  12. -- Variables
  13. local localplayer = game.Players.LocalPlayer
  14. local localcharacter = localplayer.Character or localplayer.CharacterAdded:Wait()
  15. local localroot = localcharacter:WaitForChild("HumanoidRootPart")
  16. local localhumanoid = localcharacter:WaitForChild("Humanoid")
  17.  
  18. -- Load Orion Library and create GUI
  19. local OrionLib = loadstring(game:HttpGet('https://raw.githubusercontent.com/shlexware/Orion/main/source'))()
  20. local Window = OrionLib:MakeWindow({
  21.     Name = "FE Kill All Script GUI v3",
  22.     HidePremium = false,
  23.     SaveConfig = true,
  24.     ConfigFolder = "OrionTest"
  25. })
  26.  
  27. -- Create tabs and sections
  28. local Tab = Window:MakeTab({
  29.     Name = "Main",
  30.     Icon = "rbxassetid://4483345998",
  31.     PremiumOnly = false
  32. })
  33.  
  34. local Section = Tab:AddSection({
  35.     Name = "Section Script"
  36. })
  37.  
  38. -- State Variables
  39. local FEKillAllToggle = false
  40. local FEKillAllWithTeamCheckToggle = false
  41. local FETargetPlayer = false
  42.  
  43. -- Function to update local character references
  44. local function updateLocalCharacter()
  45.     localcharacter = localplayer.Character or localplayer.CharacterAdded:Wait()
  46.     localroot = localcharacter:WaitForChild("HumanoidRootPart")
  47.     localhumanoid = localcharacter:WaitForChild("Humanoid")
  48. end
  49.  
  50. -- Update character references on respawn
  51. localplayer.CharacterAdded:Connect(function()
  52.     updateLocalCharacter()
  53.     FEKillAllToggle = false
  54.     FEKillAllWithTeamCheckToggle = false
  55.     FETargetPlayer = false
  56. end)
  57.  
  58. -- Add "FE kill all" toggle
  59. Tab:AddToggle({
  60.     Name = "FE Kill All Toggle",
  61.     Default = false,
  62.     Callback = function(state)
  63.         FEKillAllToggle = state
  64.         if FEKillAllToggle then
  65.             coroutine.wrap(function()
  66.                 while FEKillAllToggle do
  67.                     for _, v in pairs(game.Players:GetPlayers()) do
  68.                         if v ~= localplayer and v.Character and v.Character:FindFirstChild("HumanoidRootPart") and v.Character:FindFirstChild("Humanoid") then
  69.                             local vroot = v.Character:FindFirstChild("HumanoidRootPart")
  70.                             local vhumanoid = v.Character:FindFirstChild("Humanoid")
  71.                             if vroot and localhumanoid.Health > 0 and vhumanoid.Health > 0 then
  72.                                 vroot.CFrame = localroot.CFrame * CFrame.new(0, 0, range)
  73.                                 vhumanoid.WalkSpeed = 0
  74.                             end
  75.                         end
  76.                     end
  77.                     game:GetService("RunService").RenderStepped:Wait()
  78.                 end
  79.             end)()
  80.         end
  81.     end
  82. })
  83.  
  84. -- Add "FE kill all with team check" toggle
  85. Tab:AddToggle({
  86.     Name = "FE Kill All (With Team Check)",
  87.     Default = false,
  88.     Callback = function(state)
  89.         FEKillAllWithTeamCheckToggle = state
  90.         if FEKillAllWithTeamCheckToggle then
  91.             coroutine.wrap(function()
  92.                 while FEKillAllWithTeamCheckToggle do
  93.                     for _, v in pairs(game.Players:GetPlayers()) do
  94.                         if v ~= localplayer and v.Team ~= localplayer.Team and v.Character and v.Character:FindFirstChild("HumanoidRootPart") and v.Character:FindFirstChild("Humanoid") then
  95.                             local vroot = v.Character:FindFirstChild("HumanoidRootPart")
  96.                             local vhumanoid = v.Character:FindFirstChild("Humanoid")
  97.                             if vroot and localhumanoid.Health > 0 and vhumanoid.Health > 0 then
  98.                                 vroot.CFrame = localroot.CFrame * CFrame.new(0, 0, range)
  99.                                 vhumanoid.WalkSpeed = 0
  100.                             end
  101.                         end
  102.                     end
  103.                     game:GetService("RunService").RenderStepped:Wait()
  104.                 end
  105.             end)()
  106.         end
  107.     end
  108. })
  109.  
  110. -- Create player dropdown and populate with players
  111. local playerTable = {}
  112. for _, v in pairs(game.Players:GetPlayers()) do
  113.     if v.Name and v.Name ~= localplayer.Name and v.Character and v.Character:FindFirstChild("HumanoidRootPart") and v.Character:FindFirstChild("Humanoid") then
  114.         table.insert(playerTable, v.Name)
  115.     end
  116. end
  117.  
  118. local selectedPlayer = nil
  119. Tab:AddDropdown({
  120.     Name = "Select Player to Target",
  121.     Default = "",
  122.     Options = playerTable,
  123.     Callback = function(Value)
  124.         selectedPlayer = Value
  125.     end
  126. })
  127.  
  128. -- Add "Target Selected Player" toggle
  129. Tab:AddToggle({
  130.     Name = "Target Selected Player",
  131.     Default = false,
  132.     Callback = function(state)
  133.         FETargetPlayer = state
  134.         if FETargetPlayer and selectedPlayer then
  135.             coroutine.wrap(function()
  136.                 while FETargetPlayer and selectedPlayer do
  137.                     local Target = game.Players:FindFirstChild(selectedPlayer)
  138.                     if Target and Target.Character then
  139.                         local Targetroot = Target.Character:FindFirstChild("HumanoidRootPart")
  140.                         local TargetHumanoid = Target.Character:FindFirstChild("Humanoid")
  141.                         if Targetroot and localhumanoid.Health > 0 and TargetHumanoid.Health > 0 then
  142.                             Targetroot.CFrame = localroot.CFrame * CFrame.new(0, 0, range)
  143.                             TargetHumanoid.WalkSpeed = 0
  144.                         end
  145.                     end
  146.                     game:GetService("RunService").RenderStepped:Wait()
  147.                 end
  148.             end)()
  149.         else
  150.             FETargetPlayer = false
  151.         end
  152.     end
  153. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement