Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Shadow.lol Simple UI
- -- Fitur: Perfect Block + Anti SLAP + Radius Control
- local Players = game:GetService("Players")
- local RunService = game:GetService("RunService")
- local player = Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid = character:WaitForChild("Humanoid")
- local rootPart = character:WaitForChild("HumanoidRootPart")
- -- Config
- local PERFECT_BLOCK_RADIUS = 10
- local perfectBlockEnabled = false
- local antiSlapEnabled = false
- local blocking = false
- -- Buat UI
- local screenGui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
- screenGui.Name = "ShadowLOL_UI"
- local mainFrame = Instance.new("Frame", screenGui)
- mainFrame.Size = UDim2.new(0, 200, 0, 160)
- mainFrame.Position = UDim2.new(0.05, 0, 0.3, 0)
- mainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- mainFrame.BackgroundTransparency = 0.2
- mainFrame.Active = true
- mainFrame.Draggable = true
- local title = Instance.new("TextLabel", mainFrame)
- title.Size = UDim2.new(1, 0, 0, 25)
- title.BackgroundTransparency = 1
- title.Text = "Shadow.lol"
- title.TextColor3 = Color3.fromRGB(255, 255, 255)
- title.Font = Enum.Font.SourceSansBold
- title.TextSize = 18
- -- Perfect Block Toggle
- local pbBtn = Instance.new("TextButton", mainFrame)
- pbBtn.Size = UDim2.new(0.9, 0, 0, 25)
- pbBtn.Position = UDim2.new(0.05, 0, 0.25, 0)
- pbBtn.Text = "Perfect Block: OFF"
- pbBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- pbBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
- pbBtn.MouseButton1Click:Connect(function()
- perfectBlockEnabled = not perfectBlockEnabled
- pbBtn.Text = "Perfect Block: " .. (perfectBlockEnabled and "ON" or "OFF")
- end)
- -- Anti SLAP Toggle
- local slapBtn = Instance.new("TextButton", mainFrame)
- slapBtn.Size = UDim2.new(0.9, 0, 0, 25)
- slapBtn.Position = UDim2.new(0.05, 0, 0.45, 0)
- slapBtn.Text = "Anti SLAP: OFF"
- slapBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- slapBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
- slapBtn.MouseButton1Click:Connect(function()
- antiSlapEnabled = not antiSlapEnabled
- slapBtn.Text = "Anti SLAP: " .. (antiSlapEnabled and "ON" or "OFF")
- end)
- -- Radius label
- local radiusLabel = Instance.new("TextLabel", mainFrame)
- radiusLabel.Size = UDim2.new(1, 0, 0, 25)
- radiusLabel.Position = UDim2.new(0, 0, 0.65, 0)
- radiusLabel.BackgroundTransparency = 1
- radiusLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
- radiusLabel.Font = Enum.Font.SourceSans
- radiusLabel.TextSize = 16
- radiusLabel.Text = "Radius: " .. PERFECT_BLOCK_RADIUS
- local plusBtn = Instance.new("TextButton", mainFrame)
- plusBtn.Size = UDim2.new(0.45, 0, 0, 25)
- plusBtn.Position = UDim2.new(0.05, 0, 0.85, 0)
- plusBtn.Text = "+"
- plusBtn.Font = Enum.Font.SourceSansBold
- plusBtn.TextSize = 18
- plusBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- plusBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
- local minusBtn = Instance.new("TextButton", mainFrame)
- minusBtn.Size = UDim2.new(0.45, 0, 0, 25)
- minusBtn.Position = UDim2.new(0.5, 0, 0.85, 0)
- minusBtn.Text = "-"
- minusBtn.Font = Enum.Font.SourceSansBold
- minusBtn.TextSize = 18
- minusBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- minusBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
- local function updateRadiusLabel()
- radiusLabel.Text = "Radius: " .. PERFECT_BLOCK_RADIUS
- end
- plusBtn.MouseButton1Click:Connect(function()
- PERFECT_BLOCK_RADIUS = PERFECT_BLOCK_RADIUS + 1
- updateRadiusLabel()
- end)
- minusBtn.MouseButton1Click:Connect(function()
- if PERFECT_BLOCK_RADIUS > 1 then
- PERFECT_BLOCK_RADIUS = PERFECT_BLOCK_RADIUS - 1
- updateRadiusLabel()
- end
- end)
- -- Perfect Block logic
- local function startBlock()
- if not blocking then
- blocking = true
- print("Blocking aktif")
- end
- end
- local function stopBlock()
- if blocking then
- blocking = false
- print("Blocking mati")
- end
- end
- RunService.RenderStepped:Connect(function()
- if not perfectBlockEnabled then return end
- for _, enemy in pairs(Players:GetPlayers()) do
- if enemy ~= player and enemy.Character and enemy.Character:FindFirstChild("HumanoidRootPart") then
- local enemyHRP = enemy.Character.HumanoidRootPart
- local distance = (enemyHRP.Position - rootPart.Position).Magnitude
- if distance <= PERFECT_BLOCK_RADIUS then
- startBlock()
- return
- end
- end
- end
- stopBlock()
- end)
- -- Anti SLAP
- humanoid.StateChanged:Connect(function(_, state)
- if antiSlapEnabled and state == Enum.HumanoidStateType.Physics then
- humanoid:ChangeState(Enum.HumanoidStateType.GettingUp)
- end
- end)
- character.DescendantAdded:Connect(function(desc)
- if antiSlapEnabled and (desc:IsA("BodyVelocity") or desc:IsA("BodyThrust")) then
- desc:Destroy()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment