Bestmmm22

Untitled

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