Josiahiscool73

Temporary Desync(Universal)

Sep 5th, 2026
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.17 KB | None | 0 0
  1. -- Services
  2. local Players = game:GetService("Players")
  3. local RunService = game:GetService("RunService")
  4. local Workspace = game:GetService("Workspace")
  5. local UserInputService = game:GetService("UserInputService")
  6.  
  7. local player = Players.LocalPlayer
  8.  
  9. -- Create a visual indicator UI on screen so you know when the keybind is active
  10. local screenGui = Instance.new("ScreenGui")
  11. screenGui.Name = "DesyncTestGui"
  12. screenGui.ResetOnSpawn = false
  13. screenGui.Parent = player:WaitForChild("PlayerGui")
  14.  
  15. local label = Instance.new("TextLabel")
  16. label.Name = "StatusLabel"
  17. label.Size = UDim2.new(0, 250, 0, 40)
  18. label.Position = UDim2.new(0.5, -125, 0.1, 0)
  19. label.AnchorPoint = Vector2.new(0.5, 0.5)
  20. label.Text = "Press [E] to test Desync-Snap"
  21. label.TextSize = 16
  22. label.TextColor3 = Color3.new(1, 1, 1)
  23. label.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  24. label.BorderSizePixel = 0
  25. label.Parent = screenGui
  26.  
  27. local uiCorner = Instance.new("UICorner")
  28. uiCorner.CornerRadius = UDim.new(0, 6)
  29. uiCorner.Parent = label
  30.  
  31. local function getNearestHumanoid()
  32. local character = player.Character
  33. if not character or not character:FindFirstChild("HumanoidRootPart") then return nil end
  34.  
  35. local myRoot = character.HumanoidRootPart
  36. local nearestHumanoid = nil
  37. local shortestDistance = math.huge
  38.  
  39. for _, descendant in ipairs(Workspace:GetDescendants()) do
  40. if descendant:IsA("Humanoid") then
  41. local enemyChar = descendant.Parent
  42. if enemyChar and enemyChar ~= character and enemyChar:FindFirstChild("HumanoidRootPart") then
  43. local enemyRoot = enemyChar.HumanoidRootPart
  44. local distance = (myRoot.Position - enemyRoot.Position).Magnitude
  45.  
  46. if distance < shortestDistance then
  47. shortestDistance = distance
  48. nearestHumanoid = descendant
  49. end
  50. end
  51. end
  52. end
  53.  
  54. return nearestHumanoid
  55. end
  56.  
  57. local isDesyncing = false
  58.  
  59. local function triggerDesyncTeleport()
  60. if isDesyncing then return end
  61.  
  62. local character = player.Character
  63. if not character or not character:FindFirstChild("HumanoidRootPart") then return end
  64.  
  65. local rootPart = character.HumanoidRootPart
  66. local targetHumanoid = getNearestHumanoid()
  67.  
  68. if not targetHumanoid then
  69. label.Text = "No targets found!"
  70. task.wait(1)
  71. label.Text = "Press [E] to test Desync-Snap"
  72. return
  73. end
  74.  
  75. local targetRoot = targetHumanoid.Parent:FindFirstChild("HumanoidRootPart")
  76. if not targetRoot then return end
  77.  
  78. isDesyncing = true
  79. label.Text = "[STATUS]: DESYNC ACTIVE"
  80. label.BackgroundColor3 = Color3.fromRGB(180, 40, 40)
  81.  
  82. -- 1. Enable Noclip locally so physics parts don't catch you
  83. local noclipConnection
  84. noclipConnection = RunService.Stepped:Connect(function()
  85. if character then
  86. for _, part in ipairs(character:GetDescendants()) do
  87. if part:IsA("BasePart") then
  88. part.CanCollide = false
  89. end
  90. end
  91. end
  92. end)
  93.  
  94. -- 2. Zero out physics velocities to prevent weird throws
  95. rootPart.AssemblyLinearVelocity = Vector3.zero
  96. rootPart.AssemblyAngularVelocity = Vector3.zero
  97.  
  98. -- 3. Push client into a heavy position-drop state (Void/Deep underground drop)
  99. -- This causes other clients' interpolation buffers to stall out, freezing your avatar model where it was.
  100. local voidPosition = Vector3.new(rootPart.Position.X, -600, rootPart.Position.Z)
  101. rootPart.CFrame = CFrame.new(voidPosition)
  102.  
  103. -- 4. Hold the desync state for ~300ms to mimic the engine lag-compensation window
  104. task.wait(0.3)
  105.  
  106. -- 5. Snap instantly to the target's position (giving you full local aiming control while your ghost model lingers behind)
  107. rootPart.CFrame = targetRoot.CFrame + Vector3.new(0, 3, 0)
  108.  
  109. -- Clear momentum again at the target site
  110. rootPart.AssemblyLinearVelocity = Vector3.zero
  111. rootPart.AssemblyAngularVelocity = Vector3.zero
  112.  
  113. -- 6. Clean up Noclip after the pop completes
  114. if noclipConnection then
  115. noclipConnection:Disconnect()
  116. end
  117.  
  118. task.wait(0.5)
  119. isDesyncing = false
  120. label.Text = "Press [E] to test Desync-Snap"
  121. label.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  122. end
  123.  
  124. -- Bind to 'E' Key
  125. UserInputService.InputBegan:Connect(function(input, gameProcessed)
  126. if gameProcessed then return end
  127. if input.KeyCode == Enum.KeyCode.E then
  128. triggerDesyncTeleport()
  129. end
  130. end)
Advertisement
Add Comment
Please, Sign In to add comment