Advertisement
Eproq012

G

Sep 28th, 2024 (edited)
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.58 KB | None | 0 0
  1. local screenGui = Instance.new("ScreenGui")
  2. screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  3. screenGui.Name = "AntilockGui"
  4. screenGui.ResetOnSpawn = false
  5.  
  6. local frame = Instance.new("Frame")
  7. frame.Size = UDim2.new(0, 200, 0, 100)
  8. frame.Position = UDim2.new(0.5, -100, 0.5, -50)
  9. frame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  10. frame.BorderSizePixel = 0
  11. frame.Parent = screenGui
  12. frame.Name = "AntiLock"
  13.  
  14. local UIS = game:GetService("UserInputService")
  15. local dragging = false
  16. local dragInput, dragStart, startPos
  17.  
  18. local function update(input)
  19. local delta = input.Position - dragStart
  20. frame.Position = UDim2.new(
  21. startPos.X.Scale, startPos.X.Offset + delta.X,
  22. startPos.Y.Scale, startPos.Y.Offset + delta.Y
  23. )
  24. end
  25.  
  26. frame.InputBegan:Connect(function(input)
  27. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  28. dragging = true
  29. dragStart = input.Position
  30. startPos = frame.Position
  31.  
  32. input.Changed:Connect(function()
  33. if input.UserInputState == Enum.UserInputState.End then
  34. dragging = false
  35. end
  36. end)
  37. end
  38. end)
  39.  
  40. frame.InputChanged:Connect(function(input)
  41. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  42. dragInput = input
  43. end
  44. end)
  45.  
  46. UIS.InputChanged:Connect(function(input)
  47. if dragging and input == dragInput then
  48. update(input)
  49. end
  50. end)
  51.  
  52. local uiCorner = Instance.new("UICorner")
  53. uiCorner.CornerRadius = UDim.new(0, 10)
  54. uiCorner.Parent = frame
  55.  
  56. local titleLabel = Instance.new("TextLabel")
  57. titleLabel.Size = UDim2.new(1, 0, 0.3, 0)
  58. titleLabel.Position = UDim2.new(0, 0, 0, 10)
  59. titleLabel.BackgroundTransparency = 1
  60. titleLabel.Text = "Sike Anti Lock"
  61. titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  62. titleLabel.Font = Enum.Font.GothamBold
  63. titleLabel.TextSize = 18
  64. titleLabel.Parent = frame
  65.  
  66. local toggleButton = Instance.new("TextButton")
  67. toggleButton.Size = UDim2.new(0.8, 0, 0.4, 0)
  68. toggleButton.Position = UDim2.new(0.1, 0, 0.5, 0)
  69. toggleButton.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  70. toggleButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  71. toggleButton.Text = "Enable Antilock"
  72. toggleButton.Font = Enum.Font.GothamBold
  73. toggleButton.TextSize = 16
  74. toggleButton.Parent = frame
  75.  
  76. local buttonCorner = Instance.new("UICorner")
  77. buttonCorner.CornerRadius = UDim.new(0, 10)
  78. buttonCorner.Parent = toggleButton
  79.  
  80. local antiLockEnabled = false
  81.  
  82. toggleButton.MouseButton1Click:Connect(function()
  83. antiLockEnabled = not antiLockEnabled
  84. if antiLockEnabled then
  85. toggleButton.Text = "Disable Antilock"
  86. getgenv().antilock = true
  87. game.StarterGui:SetCore("SendNotification", {
  88. Title = "sike antilock",
  89. Text = "enabled",
  90. Duration = 2,
  91. })
  92. else
  93. toggleButton.Text = "Enable Antilock"
  94. getgenv().antilock = false
  95. game.StarterGui:SetCore("SendNotification", {
  96. Title = "sike anti",
  97. Text = "disabled",
  98. Duration = 2,
  99. })
  100. end
  101. end)
  102.  
  103. game:GetService("RunService").Heartbeat:Connect(function()
  104. if getgenv().antilock == true then
  105. local humanoidRootPart = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
  106. if humanoidRootPart then
  107. local originalVelocity = humanoidRootPart.Velocity
  108. humanoidRootPart.Velocity = Vector3.new(1, 1, 1) * (2^16)
  109. game:GetService("RunService").RenderStepped:Wait()
  110. humanoidRootPart.Velocity = originalVelocity
  111. end
  112. end
  113. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement