The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
Sword script Universal ''Leaked'' [not the same ui ] script pastebin roblox
By Sword script Universal ''Leaked'' [not the same ui ] on 2024-09-22 08:00 am | Syntax: LUA | Views: 10



New Script | Raw | Show/Hide line no. | Copy text to clipboard
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local Swordfighting = Instance.new("ScreenGui")
  7. local Main = Instance.new("Frame")
  8. local TextLabel = Instance.new("TextLabel")
  9. local UICorner = Instance.new("UICorner")
  10. local Killall = Instance.new("TextButton")
  11. local UICorner_2 = Instance.new("UICorner")
  12. local Aimbot = Instance.new("TextButton")
  13. local UICorner_3 = Instance.new("UICorner")
  14. local spam = Instance.new("TextButton")
  15. local UICorner_4 = Instance.new("UICorner")
  16. local Admin = Instance.new("TextButton")
  17. local UICorner_5 = Instance.new("UICorner")
  18. local Lightabuse = Instance.new("TextButton")
  19. local UICorner_6 = Instance.new("UICorner")
  20. local UICorner_7 = Instance.new("UICorner")
  21. local Frame = Instance.new("Frame")
  22. local TextButton = Instance.new("TextButton")
  23. local UICorner_8 = Instance.new("UICorner")
  24. local UICorner_9 = Instance.new("UICorner")
  25.  
  26. --Properties:
  27.  
  28. Swordfighting.Name = "Sword fighting"
  29. Swordfighting.Parent = game.CoreGui
  30. Swordfighting.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  31.  
  32. Main.Name = "Main"
  33. Main.Parent = Swordfighting
  34. Main.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  35. Main.Position = UDim2.new(0.342964828, 0, 0.244532794, 0)
  36. Main.Size = UDim2.new(0, 397, 0, 257)
  37. Main.Visible = false
  38. Main.Draggable = true
  39. Main.Active = true
  40.  
  41. TextLabel.Parent = Main
  42. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  43. TextLabel.Size = UDim2.new(0, 397, 0, 41)
  44. TextLabel.Font = Enum.Font.SourceSans
  45. TextLabel.Text = "Sword Destroying Gui"
  46. TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  47. TextLabel.TextScaled = true
  48. TextLabel.TextSize = 14.000
  49. TextLabel.TextWrapped = true
  50.  
  51. UICorner.Parent = TextLabel
  52.  
  53. Killall.Name = "Kill all"
  54. Killall.Parent = Main
  55. Killall.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  56. Killall.Position = UDim2.new(0, 0, 0.210677594, 0)
  57. Killall.Size = UDim2.new(0, 192, 0, 50)
  58. Killall.Font = Enum.Font.SourceSans
  59. Killall.Text = "Kill all (Made by Clown and also u have to hold out sword"
  60. Killall.TextColor3 = Color3.fromRGB(0, 0, 0)
  61. Killall.TextScaled = true
  62. Killall.TextSize = 14.000
  63. Killall.TextWrapped = true
  64. Killall.MouseButton1Down:connect(function()
  65.         --// Setting \\--
  66.         local range = 1000000
  67.  
  68.         --// Variable \\--
  69.         local player = game:GetService("Players").LocalPlayer
  70.  
  71.         --// Script \\--
  72.         game:GetService("RunService").RenderStepped:Connect(function()
  73.                 local p = game.Players:GetPlayers()
  74.                 for i = 2, #p do local v = p[i].Character
  75.                         if v and v:FindFirstChild("Humanoid") and v.Humanoid.Health > 0 and v:FindFirstChild("HumanoidRootPart") and player:DistanceFromCharacter(v.HumanoidRootPart.Position) = RayMethod.ArgCountRequired
  76.         end
  77.  
  78.         local function getDirection(Origin, Position)
  79.                 return (Position - Origin).Unit * 1000
  80.         end
  81.  
  82.         local function getMousePosition()
  83.                 return Vector2.new(Mouse.X, Mouse.Y)
  84.         end
  85.  
  86.         local function IsPlayerVisible(Player)
  87.                 local PlayerCharacter = Player.Character
  88.                 local LocalPlayerCharacter = LocalPlayer.Character
  89.  
  90.                 if not (PlayerCharacter or LocalPlayerCharacter) then return end
  91.  
  92.                 local PlayerRoot = FindFirstChild(PlayerCharacter, Options.TargetPart.Value) or FindFirstChild(PlayerCharacter, "HumanoidRootPart")
  93.  
  94.                 if not PlayerRoot then return end
  95.  
  96.                 local CastPoints, IgnoreList = {PlayerRoot.Position, LocalPlayerCharacter, PlayerCharacter}, {LocalPlayerCharacter, PlayerCharacter}
  97.                 local ObscuringObjects = #GetPartsObscuringTarget(Camera, CastPoints, IgnoreList)
  98.  
  99.                 return ((ObscuringObjects == 0 and true) or (ObscuringObjects > 0 and false))
  100.         end
  101.  
  102.         local function getClosestPlayer()
  103.                 if not Options.TargetPart.Value then return end
  104.                 local Closest
  105.                 local DistanceToMouse
  106.                 for _, Player in next, GetChildren(Players) do
  107.                         if Player == LocalPlayer then continue end
  108.                         if Toggles.TeamCheck.Value and Player.Team == LocalPlayer.Team then continue end
  109.  
  110.                         local Character = Player.Character
  111.  
  112.                         if not Character then continue end
  113.  
  114.                         if Toggles.VisibleCheck.Value and not IsPlayerVisible(Player) then continue end
  115.  
  116.                         local HumanoidRootPart = FindFirstChild(Character, "HumanoidRootPart")
  117.                         local Humanoid = FindFirstChild(Character, "Humanoid")
  118.  
  119.                         if not HumanoidRootPart or not Humanoid or Humanoid and Humanoid.Health



  • Recent Roblox Scripts