Advertisement
Guest User

Wall Hop Script

a guest
Jun 17th, 2024
4,992
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.81 KB | None | 0 0
  1. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/xHeptc/Kavo-UI-Library/main/source.lua"))()
  2. local Window = Library.CreateLib("Wall Hop", "DarkTheme")
  3. local Tab = Window:NewTab("Glitch")
  4. local Section = Tab:NewSection("Glitch")
  5. Section:NewButton("WallHop", "Wallhop", function()
  6. local player = game.Players.LocalPlayer
  7. local UIS = game:GetService("UserInputService")
  8.  
  9. local flickEnabled = true
  10. local flickButton
  11. local xButton
  12.  
  13. -- Create the GUI elements
  14. local gui = Instance.new("ScreenGui")
  15. gui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  16.  
  17. local container = Instance.new("Frame")
  18. container.Size = UDim2.new(0.25, 0, 0.15, 0) -- Adjust size for a slightly smaller container
  19. container.Position = UDim2.new(0.7, 0, 0.1, 0) -- Move GUI to top right corner
  20. container.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  21. container.BorderSizePixel = 0
  22. container.Parent = gui
  23.  
  24. flickButton = Instance.new("TextButton")
  25. flickButton.Text = "FLICK"
  26. flickButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  27. flickButton.Size = UDim2.new(0.6, 0, 0.6, 0) -- Adjust size for a slightly bigger flick button
  28. flickButton.Position = UDim2.new(0.2, 0, 0.2, 0) -- Adjust position within the container
  29. flickButton.BackgroundColor3 = Color3.fromRGB(255, 165, 0) -- Orange color
  30. flickButton.Parent = container
  31.  
  32. xButton = Instance.new("TextButton")
  33. xButton.Text = "X"
  34. xButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  35. xButton.Size = UDim2.new(0.1, 0, 0.1, 0)
  36. xButton.Position = UDim2.new(0.85, 0, 0, 0)
  37. xButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  38. xButton.Parent = container
  39.  
  40. local function flickCamera90Degrees()
  41. local currentCam = workspace.CurrentCamera
  42. local initialPos = currentCam.CFrame.Position
  43. local initialRot = currentCam.CFrame - initialPos
  44. currentCam.CFrame = CFrame.new(initialPos) * CFrame.Angles(0, math.rad(90), 0) * initialRot
  45. print("Camera flicked 90 degrees!")
  46. end
  47.  
  48. local function flickCameraBack90Degrees()
  49. local currentCam = workspace.CurrentCamera
  50. local initialPos = currentCam.CFrame.Position
  51. local initialRot = currentCam.CFrame - initialPos
  52. currentCam.CFrame = CFrame.new(initialPos) * CFrame.Angles(0, math.rad(-90), 0) * initialRot
  53. print("Camera flicked back 90 degrees!")
  54. end
  55.  
  56. local function flickCameraSequence()
  57. flickCamera90Degrees()
  58. wait(0.03)
  59. flickCameraBack90Degrees()
  60. end
  61.  
  62. flickButton.MouseButton1Click:Connect(function()
  63. if flickEnabled then
  64. flickCameraSequence()
  65. end
  66. end)
  67.  
  68. xButton.MouseButton1Click:Connect(function()
  69. gui:Destroy()
  70. end)
  71.  
  72. UIS.TouchTap:Connect(function(touchPositions, inputState, inputObject)
  73. if inputState == Enum.UserInputState.Begin then
  74. if flickEnabled then
  75. flickCameraSequence()
  76. end
  77. end
  78. end)
  79. print("Clicked")
  80. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement