ZV0K

Walkable Desync

Sep 5th, 2023
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. getgenv().Desync = false
  2. getgenv().KeyBind = Enum.KeyCode.K
  3.  
  4. getgenv().DirectionToShoot = "Up"
  5.  
  6. --[[
  7.  
  8. OPTIONS
  9.  
  10.  
  11. Behind
  12. Down -- can easily be resolved with underground resolver
  13. ForWard
  14. Left
  15. One
  16. Right
  17. Up -- can easily be resolved with underground resolver
  18. Zero
  19. --]]
  20.  
  21. local uis = game:service'UserInputService'
  22. uis.InputBegan:Connect(
  23. function(a, t)
  24. if not t then
  25. if a.KeyCode == getgenv().KeyBind and getgenv().Desync == false then
  26. getgenv().Desync = true
  27. game.StarterGui:SetCore("SendNotification", {
  28. Title = "Bitey so pro";
  29. Text = "ON";
  30. Icon = "";
  31. Duration = 5;
  32. })
  33. elseif a.KeyCode == getgenv().KeyBind and getgenv().Desync == true then
  34. getgenv().Desync = false
  35. game.StarterGui:SetCore("SendNotification", {
  36. Title = "Bitey so pro";
  37. Text = "TURNED OFF";
  38. Icon = "";
  39. Duration = 5;
  40. })
  41. end
  42. end
  43. end)
  44.  
  45. getgenv().Direction = nil
  46.  
  47. if getgenv().DirectionToShoot == "Behind" then
  48. getgenv().Direction = Vector3.new(0, 0, -1)
  49. elseif getgenv().DirectionToShoot == "Down" then
  50. getgenv().Direction = Vector3.new(0, -1, 0)
  51. elseif getgenv().DirectionToShoot == "ForWard" then
  52. getgenv().Direction = Vector3.new(0, 0, 1)
  53. elseif getgenv().DirectionToShoot == "Left" then
  54. getgenv().Direction = Vector3.new(-1, 0, 0)
  55. elseif getgenv().DirectionToShoot == "One" then
  56. getgenv().Direction = Vector3.new(1, 1, 1)
  57. elseif getgenv().DirectionToShoot == "Right" then
  58. getgenv().Direction = Vector3.new(1, 0, 0)
  59. elseif getgenv().DirectionToShoot == "Up" then
  60. getgenv().Direction = Vector3.new(0, 1, 0)
  61. elseif getgenv().DirectionToShoot == "Zero" then
  62. getgenv().Direction = Vector3.new(0, 0, 0)
  63. end
  64.  
  65.  
  66. game:GetService("RunService").heartbeat:Connect(function()
  67. if getgenv().Desync == true then
  68. local abc = game.Players.LocalPlayer.Character.HumanoidRootPart.Velocity
  69. game.Players.LocalPlayer.Character.HumanoidRootPart.Velocity = getgenv().Direction * (2^16)
  70. game:GetService("RunService").RenderStepped:Wait()
  71. game.Players.LocalPlayer.Character.HumanoidRootPart.Velocity = abc
  72. end
  73. end)
Add Comment
Please, Sign In to add comment