Bestmmm22

Untitled

Aug 27th, 2025
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.59 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 awal
  10. local PERFECT_BLOCK_RADIUS = 10
  11. local blocking = false
  12. local enabled = true
  13. -- Buat UI sederhana
  14. local screenGui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
  15. screenGui.Name = "ShadowLOL_UI"
  16. local mainFrame = Instance.new("Frame", screenGui)
  17. mainFrame.Size = UDim2.new(0, 180, 0, 120)
  18. mainFrame.Position = UDim2.new(0.05, 0, 0.3, 0)
  19. mainFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  20. mainFrame.BackgroundTransparency = 0.2
  21. mainFrame.Active = true
  22. mainFrame.Draggable = true
  23. local title = Instance.new("TextLabel", mainFrame)
  24. title.Size = UDim2.new(1, 0, 0, 25)
  25. title.BackgroundTransparency = 1
  26. title.Text = "Shadow.lol"
  27. title.TextColor3 = Color3.fromRGB(255, 255, 255)
  28. title.Font = Enum.Font.SourceSansBold
  29. title.TextSize = 18
  30. local radiusLabel = Instance.new("TextLabel", mainFrame)
  31. radiusLabel.Size = UDim2.new(1, 0, 0, 25)
  32. radiusLabel.Position = UDim2.new(0, 0, 0.3, 0)
  33. radiusLabel.BackgroundTransparency = 1
  34. radiusLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
  35. radiusLabel.Font = Enum.Font.SourceSans
  36. radiusLabel.TextSize = 16
  37. radiusLabel.Text = "Radius: " .. PERFECT_BLOCK_RADIUS
  38. local plusBtn = Instance.new("TextButton", mainFrame)
  39. plusBtn.Size = UDim2.new(0.45, 0, 0, 25)
  40. plusBtn.Position = UDim2.new(0.05, 0, 0.7, 0)
  41. plusBtn.Text = "+"
  42. plusBtn.Font = Enum.Font.SourceSansBold
  43. plusBtn.TextSize = 18
  44. plusBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  45. plusBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
  46. local minusBtn = Instance.new("TextButton", mainFrame)
  47. minusBtn.Size = UDim2.new(0.45, 0, 0, 25)
  48. minusBtn.Position = UDim2.new(0.5, 0, 0.7, 0)
  49. minusBtn.Text = "-"
  50. minusBtn.Font = Enum.Font.SourceSansBold
  51. minusBtn.TextSize = 18
  52. minusBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  53. minusBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
  54. -- Update radius label
  55. local function updateRadiusLabel()
  56.     radiusLabel.Text = "Radius: " .. PERFECT_BLOCK_RADIUS
  57. end
  58. plusBtn.MouseButton1Click:Connect(function()
  59.     PERFECT_BLOCK_RADIUS = PERFECT_BLOCK_RADIUS + 1
  60.     updateRadiusLabel()
  61. end)
  62. minusBtn.MouseButton1Click:Connect(function()
  63.     if PERFECT_BLOCK_RADIUS > 1 then
  64.         PERFECT_BLOCK_RADIUS = PERFECT_BLOCK_RADIUS - 1
  65.         updateRadiusLabel()
  66.     end
  67. end)
  68. -- Perfect Block logic
  69. local function startBlock()
  70.     if not blocking then
  71.         blocking = true
  72.         print("Blocking aktif")
  73.     end
  74. end
  75. local function stopBlock()
  76.     if blocking then
  77.         blocking = false
  78.         print("Blocking mati")
  79.     end
  80. end
  81. RunService.RenderStepped:Connect(function()
  82.     if not enabled then return end
  83.     for _, enemy in pairs(Players:GetPlayers()) do
  84.         if enemy ~= player and enemy.Character and enemy.Character:FindFirstChild("HumanoidRootPart") then
  85.             local enemyHRP = enemy.Character.HumanoidRootPart
  86.             local distance = (enemyHRP.Position - rootPart.Position).Magnitude
  87.            
  88.             if distance <= PERFECT_BLOCK_RADIUS then
  89.                 startBlock()
  90.                 return
  91.             end
  92.         end
  93.     end
  94.     stopBlock()
  95. end)
  96. -- Anti SLAP
  97. humanoid.StateChanged:Connect(function(_, state)
  98.     if state == Enum.HumanoidStateType.Physics then
  99.         humanoid:ChangeState(Enum.HumanoidStateType.GettingUp)
  100.     end
  101. end)
  102. character.DescendantAdded:Connect(function(desc)
  103.     if desc:IsA("BodyVelocity") or desc:IsA("BodyThrust") then
  104.         desc:Destroy()
  105.     end
  106. end)
Advertisement
Add Comment
Please, Sign In to add comment