MaxproGlitcher

Monter en spideman code by Max

Jun 15th, 2026
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local RunService = game:GetService("RunService")
  3.  
  4. local player = Players.LocalPlayer
  5.  
  6. local abilityEnabled = true
  7. local hrp
  8. local humanoid
  9.  
  10. local function isPlayerCharacter(part)
  11. local model = part:FindFirstAncestorOfClass("Model")
  12. if not model then return false end
  13. return Players:GetPlayerFromCharacter(model) ~= nil
  14. end
  15.  
  16. local function setupCharacter(character)
  17. hrp = character:WaitForChild("HumanoidRootPart")
  18. humanoid = character:WaitForChild("Humanoid")
  19.  
  20. humanoid.Died:Connect(function()
  21. abilityEnabled = false
  22. end)
  23. end
  24.  
  25. if player.Character then
  26. setupCharacter(player.Character)
  27. end
  28.  
  29. player.CharacterAdded:Connect(setupCharacter)
  30.  
  31. RunService.RenderStepped:Connect(function()
  32. if not abilityEnabled or not hrp or not humanoid then
  33. return
  34. end
  35.  
  36. local params = RaycastParams.new()
  37. params.FilterType = Enum.RaycastFilterType.Blacklist
  38. params.FilterDescendantsInstances = {player.Character}
  39.  
  40. local ray = workspace:Raycast(
  41. hrp.Position,
  42. hrp.CFrame.LookVector * 3,
  43. params
  44. )
  45.  
  46. if ray then
  47.  
  48. if isPlayerCharacter(ray.Instance) then
  49. return
  50. end
  51.  
  52.  
  53. if not ray.Instance.CanCollide then
  54. return
  55. end
  56.  
  57. local moveDir = humanoid.MoveDirection
  58.  
  59. if moveDir.Magnitude > 0.1 then
  60. hrp.AssemblyLinearVelocity = Vector3.new(
  61. hrp.AssemblyLinearVelocity.X,
  62. 18,
  63. hrp.AssemblyLinearVelocity.Z
  64. )
  65. end
  66. end
  67. end)
Advertisement
Add Comment
Please, Sign In to add comment