Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local screenGui = Instance.new("ScreenGui")
- screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- screenGui.Name = "AntilockGui"
- screenGui.ResetOnSpawn = false
- local frame = Instance.new("Frame")
- frame.Size = UDim2.new(0, 200, 0, 100)
- frame.Position = UDim2.new(0.5, -100, 0.5, -50)
- frame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- frame.BorderSizePixel = 0
- frame.Parent = screenGui
- frame.Name = "AntiLock"
- local UIS = game:GetService("UserInputService")
- local dragging = false
- local dragInput, dragStart, startPos
- local function update(input)
- local delta = input.Position - dragStart
- frame.Position = UDim2.new(
- startPos.X.Scale, startPos.X.Offset + delta.X,
- startPos.Y.Scale, startPos.Y.Offset + delta.Y
- )
- end
- frame.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- dragging = true
- dragStart = input.Position
- startPos = frame.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end)
- frame.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
- dragInput = input
- end
- end)
- UIS.InputChanged:Connect(function(input)
- if dragging and input == dragInput then
- update(input)
- end
- end)
- local uiCorner = Instance.new("UICorner")
- uiCorner.CornerRadius = UDim.new(0, 10)
- uiCorner.Parent = frame
- local titleLabel = Instance.new("TextLabel")
- titleLabel.Size = UDim2.new(1, 0, 0.3, 0)
- titleLabel.Position = UDim2.new(0, 0, 0, 10)
- titleLabel.BackgroundTransparency = 1
- titleLabel.Text = "Sike Anti Lock"
- titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- titleLabel.Font = Enum.Font.GothamBold
- titleLabel.TextSize = 18
- titleLabel.Parent = frame
- local toggleButton = Instance.new("TextButton")
- toggleButton.Size = UDim2.new(0.8, 0, 0.4, 0)
- toggleButton.Position = UDim2.new(0.1, 0, 0.5, 0)
- toggleButton.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- toggleButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- toggleButton.Text = "Enable Antilock"
- toggleButton.Font = Enum.Font.GothamBold
- toggleButton.TextSize = 16
- toggleButton.Parent = frame
- local buttonCorner = Instance.new("UICorner")
- buttonCorner.CornerRadius = UDim.new(0, 10)
- buttonCorner.Parent = toggleButton
- local antiLockEnabled = false
- toggleButton.MouseButton1Click:Connect(function()
- antiLockEnabled = not antiLockEnabled
- if antiLockEnabled then
- toggleButton.Text = "Disable Antilock"
- getgenv().antilock = true
- game.StarterGui:SetCore("SendNotification", {
- Title = "sike antilock",
- Text = "enabled",
- Duration = 2,
- })
- else
- toggleButton.Text = "Enable Antilock"
- getgenv().antilock = false
- game.StarterGui:SetCore("SendNotification", {
- Title = "sike anti",
- Text = "disabled",
- Duration = 2,
- })
- end
- end)
- game:GetService("RunService").Heartbeat:Connect(function()
- if getgenv().antilock == true then
- local humanoidRootPart = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
- if humanoidRootPart then
- local originalVelocity = humanoidRootPart.Velocity
- humanoidRootPart.Velocity = Vector3.new(1, 1, 1) * (2^16)
- game:GetService("RunService").RenderStepped:Wait()
- humanoidRootPart.Velocity = originalVelocity
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement