Advertisement
UnnoobcoolHelper

WallHop By luffy i created this script

May 1st, 2025 (edited)
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.08 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("Seiko Scripts", "Synapse")
  3. local Tab = Window:NewTab("Game Name")
  4. local Section = Tab:NewSection("Sub and like")
  5. Section:NewButton("ButtonText", "ButtonInfo", function()-- Create ScreenGui
  6.  
  7. local screenGui = Instance.new("ScreenGui")
  8.  
  9. screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  10.  
  11. screenGui.ResetOnSpawn = false
  12.  
  13. -- Create Frame (Stylized with Neon)
  14.  
  15. local frame = Instance.new("Frame")
  16.  
  17. frame.Parent = screenGui
  18.  
  19. frame.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
  20.  
  21. frame.Size = UDim2.new(0, 250, 0, 150)
  22.  
  23. frame.Position = UDim2.new(0.5, -125, 0.5, -75)
  24.  
  25. frame.Active = true
  26.  
  27. frame.Draggable = true
  28.  
  29. frame.BorderSizePixel = 0
  30.  
  31. frame.BackgroundTransparency = 0.3
  32.  
  33. -- Add Neon Outline Effect
  34.  
  35. local neonOutline = Instance.new("UIStroke")
  36.  
  37. neonOutline.Parent = frame
  38.  
  39. neonOutline.Thickness = 5
  40.  
  41. neonOutline.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  42.  
  43. neonOutline.Color = Color3.fromRGB(0, 255, 255)
  44.  
  45. neonOutline.Transparency = 0.5
  46.  
  47. -- Add Background Gradient
  48.  
  49. local gradient = Instance.new("UIGradient")
  50.  
  51. gradient.Parent = frame
  52.  
  53. gradient.Color = ColorSequence.new{
  54.  
  55. ColorSequenceKeypoint.new(0, Color3.fromRGB(30, 30, 30)),
  56.  
  57. ColorSequenceKeypoint.new(1, Color3.fromRGB(50, 50, 50))
  58.  
  59. }
  60.  
  61. gradient.Rotation = 45
  62.  
  63. -- Create On Button
  64.  
  65. local onButton = Instance.new("TextButton")
  66.  
  67. onButton.Parent = frame
  68.  
  69. onButton.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
  70.  
  71. onButton.Size = UDim2.new(0, 80, 0, 40)
  72.  
  73. onButton.Position = UDim2.new(0, 20, 0, 20)
  74.  
  75. onButton.Text = "ON"
  76.  
  77. onButton.TextScaled = true
  78.  
  79. onButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  80.  
  81. onButton.BorderSizePixel = 0
  82.  
  83. -- Neon Effect for On Button
  84.  
  85. local onNeon = Instance.new("UIStroke")
  86.  
  87. onNeon.Parent = onButton
  88.  
  89. onNeon.Thickness = 4
  90.  
  91. onNeon.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  92.  
  93. onNeon.Color = Color3.fromRGB(0, 255, 255)
  94.  
  95. onNeon.Transparency = 0.5
  96.  
  97. -- Create Off Button
  98.  
  99. local offButton = Instance.new("TextButton")
  100.  
  101. offButton.Parent = frame
  102.  
  103. offButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  104.  
  105. offButton.Size = UDim2.new(0, 80, 0, 40)
  106.  
  107. offButton.Position = UDim2.new(0, 140, 0, 20)
  108.  
  109. offButton.Text = "OFF"
  110.  
  111. offButton.TextScaled = true
  112.  
  113. offButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  114.  
  115. offButton.BorderSizePixel = 0
  116.  
  117. -- Neon Effect for Off Button
  118.  
  119. local offNeon = Instance.new("UIStroke")
  120.  
  121. offNeon.Parent = offButton
  122.  
  123. offNeon.Thickness = 4
  124.  
  125. offNeon.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  126.  
  127. offNeon.Color = Color3.fromRGB(0, 255, 255)
  128.  
  129. offNeon.Transparency = 0.5
  130.  
  131. -- Create Destroy Button
  132.  
  133. local destroyButton = Instance.new("TextButton")
  134.  
  135. destroyButton.Parent = frame
  136.  
  137. destroyButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  138.  
  139. destroyButton.Size = UDim2.new(0, 200, 0, 40)
  140.  
  141. destroyButton.Position = UDim2.new(0, 20, 0, 100)
  142.  
  143. destroyButton.Text = "Destroy GUI"
  144.  
  145. destroyButton.TextScaled = true
  146.  
  147. destroyButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  148.  
  149. destroyButton.BorderSizePixel = 0
  150.  
  151. -- Create Status Indicator
  152.  
  153. local statusLabel = Instance.new("TextLabel")
  154.  
  155. statusLabel.Parent = frame
  156.  
  157. statusLabel.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  158.  
  159. statusLabel.Size = UDim2.new(0, 250, 0, 30)
  160.  
  161. statusLabel.Position = UDim2.new(0, 0, 0, -30)
  162.  
  163. statusLabel.Text = "WallHop By Luffy: OFF"
  164.  
  165. statusLabel.TextColor3 = Color3.fromRGB(255, 0, 0)
  166.  
  167. statusLabel.TextScaled = true
  168.  
  169. statusLabel.TextStrokeTransparency = 0.5
  170.  
  171. -- Variables for Wallhop Functionality
  172.  
  173. local toggle = false
  174.  
  175. local InfiniteJumpEnabled = true -- Acts as debounce
  176.  
  177. local UserInputService = game:GetService("UserInputService")
  178.  
  179. local Players = game:GetService("Players")
  180.  
  181. local Workspace = game:GetService("Workspace")
  182.  
  183. local RunService = game:GetService("RunService")
  184.  
  185. local raycastParams = RaycastParams.new()
  186.  
  187. raycastParams.FilterType = Enum.RaycastFilterType.Blacklist
  188.  
  189. -- Filter list will be updated dynamically
  190.  
  191. -- Precise wall detection function - Returns RaycastResult
  192.  
  193. local function getWallRaycastResult()
  194.  
  195. local player = Players.LocalPlayer
  196.  
  197. local character = player.Character
  198.  
  199. if not character then return nil end
  200.  
  201. local humanoidRootPart = character:FindFirstChild("HumanoidRootPart")
  202.  
  203. if not humanoidRootPart then return nil end
  204.  
  205. raycastParams.FilterDescendantsInstances = {character}
  206.  
  207. local directions = {
  208.  
  209. humanoidRootPart.CFrame.LookVector,
  210.  
  211. -humanoidRootPart.CFrame.LookVector,
  212.  
  213. humanoidRootPart.CFrame.RightVector,
  214.  
  215. -humanoidRootPart.CFrame.RightVector
  216.  
  217. }
  218.  
  219. local detectionDistance = 2
  220.  
  221. local closestHit = nil
  222.  
  223. local minDistance = detectionDistance + 1
  224.  
  225. for _, direction in pairs(directions) do
  226.  
  227. local ray = Workspace:Raycast(
  228.  
  229. humanoidRootPart.Position,
  230.  
  231. direction * detectionDistance,
  232.  
  233. raycastParams
  234.  
  235. )
  236.  
  237. if ray and ray.Instance then
  238.  
  239. if ray.Distance < minDistance then
  240.  
  241. minDistance = ray.Distance
  242.  
  243. closestHit = ray
  244.  
  245. end
  246.  
  247. end
  248.  
  249. end
  250.  
  251. return closestHit
  252.  
  253. end
  254.  
  255. -- Button Functions
  256.  
  257. onButton.MouseButton1Click:Connect(function()
  258.  
  259. statusLabel.Text = "WallHop By Luffy: ON"
  260.  
  261. statusLabel.TextColor3 = Color3.fromRGB(0, 255, 0)
  262.  
  263. toggle = true
  264.  
  265. end)
  266.  
  267. offButton.MouseButton1Click:Connect(function()
  268.  
  269. statusLabel.Text = "WallHop By Luffy: OFF"
  270.  
  271. statusLabel.TextColor3 = Color3.fromRGB(255, 0, 0)
  272.  
  273. toggle = false
  274.  
  275. end)
  276.  
  277. destroyButton.MouseButton1Click:Connect(function()
  278.  
  279. screenGui:Destroy()
  280.  
  281. end)
  282.  
  283. -- Wallhop Function - ADDED ROTATION BACK TOWARDS WALL
  284.  
  285. UserInputService.JumpRequest:Connect(function()
  286.  
  287. if not toggle or not InfiniteJumpEnabled then return end
  288.  
  289. local player = Players.LocalPlayer
  290.  
  291. local character = player.Character
  292.  
  293. local humanoid = character and character:FindFirstChildOfClass("Humanoid")
  294.  
  295. local rootPart = character and character:FindFirstChild("HumanoidRootPart")
  296.  
  297. local camera = Workspace.CurrentCamera
  298.  
  299. if not (humanoid and rootPart and camera) then return end
  300.  
  301. local wallRayResult = getWallRaycastResult()
  302.  
  303. if wallRayResult then
  304.  
  305. InfiniteJumpEnabled = false -- Start debounce immediately
  306.  
  307. -- 1. Calculate Base Direction Away from Wall
  308.  
  309. local wallNormal = wallRayResult.Normal
  310.  
  311. local horizontalWallNormal = Vector3.new(wallNormal.X, 0, wallNormal.Z).Unit
  312.  
  313. if horizontalWallNormal.Magnitude < 0.1 then
  314.  
  315. horizontalWallNormal = (rootPart.CFrame.LookVector * Vector3.new(1,0,1)).Unit
  316.  
  317. if horizontalWallNormal.Magnitude < 0.1 then horizontalWallNormal = Vector3.new(0,0,-1) end
  318.  
  319. end
  320.  
  321. local baseDirectionAwayFromWall = horizontalWallNormal -- Store this original direction
  322.  
  323. -- 2. Get Camera's Horizontal Look Direction
  324.  
  325. local cameraLook = camera.CFrame.LookVector
  326.  
  327. local horizontalCameraLook = Vector3.new(cameraLook.X, 0, cameraLook.Z).Unit
  328.  
  329. if horizontalCameraLook.Magnitude < 0.1 then horizontalCameraLook = baseDirectionAwayFromWall end
  330.  
  331. -- 3. Calculate Initial Rotation (Away from Wall, Camera Influenced)
  332.  
  333. local maxInfluenceAngle = math.rad(40)
  334.  
  335. local dot = math.clamp(baseDirectionAwayFromWall:Dot(horizontalCameraLook), -1, 1)
  336.  
  337. local angleBetween = math.acos(dot)
  338.  
  339. local cross = baseDirectionAwayFromWall:Cross(horizontalCameraLook)
  340.  
  341. local rotationSign = math.sign(cross.Y)
  342.  
  343. if rotationSign == 0 then angleBetween = 0 end
  344.  
  345. local actualInfluenceAngle = math.min(angleBetween, maxInfluenceAngle)
  346.  
  347. local adjustmentRotation = CFrame.Angles(0, actualInfluenceAngle * rotationSign, 0)
  348.  
  349. local initialTargetLookDirection = adjustmentRotation * baseDirectionAwayFromWall
  350.  
  351. -- 4. Apply Initial Rotation FIRST
  352.  
  353. rootPart.CFrame = CFrame.lookAt(rootPart.Position, rootPart.Position + initialTargetLookDirection)
  354.  
  355. -- 5. Wait a very short moment (one frame)
  356.  
  357. RunService.Heartbeat:Wait()
  358.  
  359. -- 6. Apply Jump
  360.  
  361. local didJump = false
  362.  
  363. if humanoid and humanoid:GetState() ~= Enum.HumanoidStateType.Dead then
  364.  
  365. humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
  366.  
  367. didJump = true -- Track if the jump actually happened
  368.  
  369. end
  370.  
  371. -- 7. Apply Rotation BACK towards the wall IF the jump occurred
  372.  
  373. if didJump then
  374.  
  375. local directionTowardsWall = -baseDirectionAwayFromWall -- Reverse the original away direction
  376.  
  377. -- Use the root part's current position as the origin for lookAt
  378.  
  379. rootPart.CFrame = CFrame.lookAt(rootPart.Position, rootPart.Position + directionTowardsWall)
  380.  
  381. end
  382.  
  383. -- Post-jump cooldown
  384.  
  385. task.wait(0.15)
  386.  
  387. InfiniteJumpEnabled = true -- End debounce
  388.  
  389. end
  390.  
  391. end)
  392.  
  393. -- Your script here remove this text
  394. print("Clicked")
  395. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement