Bestmmm22

Untitled

Aug 27th, 2025
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.14 KB | None | 0 0
  1. -- Shadow.lol Simple UI Persisten
  2. -- Fitur: Perfect Block (semua arah) + Anti SLAP + Radius Control (+/-)
  3. local Players = game:GetService("Players")
  4. local RunService = game:GetService("RunService")
  5. local CoreGui = game:GetService("CoreGui")
  6. local player = Players.LocalPlayer
  7. local character = player.Character or player.CharacterAdded:Wait()
  8. local humanoid = character:WaitForChild("Humanoid")
  9. local rootPart = character:WaitForChild("HumanoidRootPart")
  10. -- Config awal
  11. local PERFECT_BLOCK_RADIUS = 10
  12. local perfectBlockEnabled = false
  13. local antiSlapEnabled = false
  14. local blocking = false
  15. -- Buat UI sekali saja
  16. local screenGui = Instance.new("ScreenGui")
  17. screenGui.Name = "ShadowLOL_UI"
  18. screenGui.ResetOnSpawn = false
  19. screenGui.Parent = CoreGui
  20. local mainFrame = Instance.new("Frame", screenGui)
  21. mainFrame.Size = UDim2.new(0, 200, 0, 160)
  22. mainFrame.Position = UDim2.new(0.05, 0, 0.3, 0)
  23. mainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  24. mainFrame.BackgroundTransparency = 0.2
  25. mainFrame.Active = true
  26. mainFrame.Draggable = true
  27. local title = Instance.new("TextLabel", mainFrame)
  28. title.Size = UDim2.new(1, 0, 0, 25)
  29. title.BackgroundTransparency = 1
  30. title.Text = "Shadow.lol"
  31. title.TextColor3 = Color3.fromRGB(255, 255, 255)
  32. title.Font = Enum.Font.SourceSansBold
  33. title.TextSize = 18
  34. -- Perfect Block Toggle
  35. local pbBtn = Instance.new("TextButton", mainFrame)
  36. pbBtn.Size = UDim2.new(0.9, 0, 0, 25)
  37. pbBtn.Position = UDim2.new(0.05, 0, 0.25, 0)
  38. pbBtn.Text = "Perfect Block: OFF"
  39. pbBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  40. pbBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
  41. pbBtn.MouseButton1Click:Connect(function()
  42.     perfectBlockEnabled = not perfectBlockEnabled
  43.     pbBtn.Text = "Perfect Block: " .. (perfectBlockEnabled and "ON" or "OFF")
  44. end)
  45. -- Anti SLAP Toggle
  46. local slapBtn = Instance.new("TextButton", mainFrame)
  47. slapBtn.Size = UDim2.new(0.9, 0, 0, 25)
  48. slapBtn.Position = UDim2.new(0.05, 0, 0.45, 0)
  49. slapBtn.Text = "Anti SLAP: OFF"
  50. slapBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  51. slapBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
  52. slapBtn.MouseButton1Click:Connect(function()
  53.     antiSlapEnabled = not antiSlapEnabled
  54.     slapBtn.Text = "Anti SLAP: " .. (antiSlapEnabled and "ON" or "OFF")
  55. end)
  56. -- Radius Label
  57. local radiusLabel = Instance.new("TextLabel", mainFrame)
  58. radiusLabel.Size = UDim2.new(1, 0, 0, 25)
  59. radiusLabel.Position = UDim2.new(0, 0, 0.65, 0)
  60. radiusLabel.BackgroundTransparency = 1
  61. radiusLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
  62. radiusLabel.Font = Enum.Font.SourceSans
  63. radiusLabel.TextSize = 16
  64. radiusLabel.Text = "Radius: " .. PERFECT_BLOCK_RADIUS
  65. local plusBtn = Instance.new("TextButton", mainFrame)
  66. plusBtn.Size = UDim2.new(0.45, 0, 0, 25)
  67. plusBtn.Position = UDim2.new(0.05, 0, 0.85, 0)
  68. plusBtn.Text = "+"
  69. plusBtn.Font = Enum.Font.SourceSansBold
  70. plusBtn.TextSize = 18
  71. plusBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  72. plusBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
  73. local minusBtn = Instance.new("TextButton", mainFrame)
  74. minusBtn.Size = UDim2.new(0.45, 0, 0, 25)
  75. minusBtn.Position = UDim2.new(0.5, 0, 0.85, 0)
  76. minusBtn.Text = "-"
  77. minusBtn.Font = Enum.Font.SourceSansBold
  78. minusBtn.TextSize = 18
  79. minusBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  80. minusBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
  81. local function updateRadiusLabel()
  82.     radiusLabel.Text = "Radius: " .. PERFECT_BLOCK_RADIUS
  83. end
  84. plusBtn.MouseButton1Click:Connect(function()
  85.     PERFECT_BLOCK_RADIUS = PERFECT_BLOCK_RADIUS + 1
  86.     updateRadiusLabel()
  87. end)
  88. minusBtn.MouseButton1Click:Connect(function()
  89.     if PERFECT_BLOCK_RADIUS > 1 then
  90.         PERFECT_BLOCK_RADIUS = PERFECT_BLOCK_RADIUS - 1
  91.         updateRadiusLabel()
  92.     end
  93. end)
  94. -- Perfect Block logic (semua arah)
  95. local function startBlock()
  96.     if not blocking then
  97.         blocking = true
  98.         print("Perfect Block aktif")
  99.     end
  100. end
  101. local function stopBlock()
  102.     if blocking then
  103.         blocking = false
  104.         print("Perfect Block mati")
  105.     end
  106. end
  107. RunService.RenderStepped:Connect(function()
  108.     if not perfectBlockEnabled then return end
  109.     if not character or not rootPart then return end
  110.     local foundEnemy = false
  111.     for _, enemy in pairs(Players:GetPlayers()) do
  112.         if enemy ~= player and enemy.Character and enemy.Character:FindFirstChild("HumanoidRootPart") then
  113.             local enemyHRP = enemy.Character.HumanoidRootPart
  114.             local distance = (enemyHRP.Position - rootPart.Position).Magnitude
  115.             if distance <= PERFECT_BLOCK_RADIUS then
  116.                 foundEnemy = true
  117.                 break
  118.             end
  119.         end
  120.     end
  121.     if foundEnemy then
  122.         startBlock()
  123.     else
  124.         stopBlock()
  125.     end
  126. end)
  127. -- Anti SLAP
  128. local function connectAntiSlap(hum, char)
  129.     hum.StateChanged:Connect(function(_, state)
  130.         if antiSlapEnabled and state == Enum.HumanoidStateType.Physics then
  131.             hum:ChangeState(Enum.HumanoidStateType.GettingUp)
  132.         end
  133.     end)
  134.     char.DescendantAdded:Connect(function(desc)
  135.         if antiSlapEnabled and (desc:IsA("BodyVelocity") or desc:IsA("BodyThrust")) then
  136.             desc:Destroy()
  137.         end
  138.     end)
  139. end
  140. connectAntiSlap(humanoid, character)
  141. -- Reconnect saat respawn
  142. player.CharacterAdded:Connect(function(char)
  143.     character = char
  144.     humanoid = char:WaitForChild("Humanoid")
  145.     rootPart = char:WaitForChild("HumanoidRootPart")
  146.     connectAntiSlap(humanoid, character)
  147. end)
Advertisement
Add Comment
Please, Sign In to add comment