
Keyless

local UserInputService = game:GetService("UserInputService")
local CoreGui = game:GetService("CoreGui")
local localPlayer = game.Players.LocalPlayer
local bricksFolder = workspace.obby.bricks
local targetPart = nil
for _, child in pairs(bricksFolder:GetChildren()) do
if child:IsA("BasePart") then
if child.BrickColor.Name == "Teal" or child.Name:lower():match("teal") then
targetPart = child
break
end
end
end
if not targetPart then
for _, child in pairs(bricksFolder:GetChildren()) do
if child:IsA("BasePart") then
if child.Color.G > 0.4 and child.Color.B > 0.4 and child.Color.R < 0.3 then
targetPart = child
break
end
end
end
end
local oldUi = CoreGui:FindFirstChild("ParryBlockToggleUI")
if oldUi then oldUi:Destroy() end
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Parent = CoreGui
ScreenGui.Name = "ParryBlockToggleUI"
local MainFrame = Instance.new("Frame")
MainFrame.Size = UDim2.new(0, 155, 0, 30)
MainFrame.Position = UDim2.new(0, 15, 1, -45)
MainFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
MainFrame.BorderSizePixel = 0
MainFrame.Parent = ScreenGui
local UICorner = Instance.new("UICorner")
UICorner.CornerRadius = UDim.new(0, 6)
UICorner.Parent = MainFrame
local Checkbox = Instance.new("TextButton")
Checkbox.Size = UDim2.new(0, 18, 0, 18)
Checkbox.Position = UDim2.new(0, 8, 0.5, -9)
Checkbox.BackgroundColor3 = Color3.fromRGB(220, 50, 50)
Checkbox.Text = ""
Checkbox.BorderSizePixel = 0
Checkbox.Parent = MainFrame
local CheckboxCorner = Instance.new("UICorner")
CheckboxCorner.CornerRadius = UDim.new(0, 4)
CheckboxCorner.Parent = Checkbox
local Label = Instance.new("TextLabel")
Label.Size = UDim2.new(0, 120, 0, 20)
Label.Position = UDim2.new(0, 32, 0.5, -10)
Label.BackgroundTransparency = 1
Label.Text = "Parry Block (Toggle B)"
Label.TextColor3 = Color3.fromRGB(255, 255, 255)
Label.TextSize = 12
Label.Font = Enum.Font.SourceSansBold
Label.TextXAlignment = Enum.TextXAlignment.Left
Label.Parent = MainFrame
local isEnabled = false
local function toggleState()
isEnabled = not isEnabled
if isEnabled then
Checkbox.BackgroundColor3 = Color3.fromRGB(50, 220, 50)
else
Checkbox.BackgroundColor3 = Color3.fromRGB(220, 50, 50)
end
end
Checkbox.MouseButton1Click:Connect(toggleState)
UserInputService.InputBegan:Connect(function(input, gameProcessed)
if gameProcessed then return end
if input.KeyCode == Enum.KeyCode.B then
toggleState()
end
if isEnabled and input.UserInputType == Enum.UserInputType.MouseButton2 then
local character = localPlayer.Character
local rootPart = character and character:FindFirstChild("HumanoidRootPart")
if rootPart and targetPart then
firetouchinterest(targetPart, rootPart, 0)
task.wait()
firetouchinterest(targetPart, rootPart, 1)
end
end
end)
Don't work
didnt work
@sanechka747 i'll fix it soon