xvc200

testing

Mar 8th, 2026
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.34 KB | None | 0 0
  1. local module = {}
  2. local enabled = false
  3. local orb = nil
  4. local orb_pos = nil
  5.  
  6. local rng = function(len)
  7. local chars = "!@#$%^&*()_+-=[]{}|;:,.<>?"
  8. local result = ""
  9. for i = 1, len do
  10. local n = math.random(1, #chars)
  11. result ..= chars:sub(n, n)
  12. end
  13. return result
  14. end
  15.  
  16. local notify = function(text)
  17. if getgenv().notify == true then
  18. game:GetService("StarterGui"):SetCore("SendNotification", {
  19. Title = "desync",
  20. Text = text,
  21. Duration = 3
  22. })
  23. end
  24. end
  25.  
  26. local make_orb = function(pos)
  27. if orb then orb:Destroy() end
  28. orb = Instance.new("Part")
  29. orb.Name = rng(8)
  30. orb.Size = Vector3.new(4, 4, 4)
  31. orb.Shape = Enum.PartType.Ball
  32. orb.Material = Enum.Material.Neon
  33. orb.Color = Color3.fromRGB(0, 219, 40)
  34. orb.Transparency = 0.4
  35. orb.CanCollide = false
  36. orb.Anchored = true
  37. orb.CFrame = pos
  38. orb.Parent = workspace
  39.  
  40. local light = Instance.new("PointLight")
  41. light.Brightness = 2
  42. light.Range = 15
  43. light.Color = Color3.fromRGB(0, 219, 40)
  44. light.Parent = orb
  45.  
  46. local billboard = Instance.new("BillboardGui")
  47. billboard.Size = UDim2.new(0, 100, 0, 40)
  48. billboard.StudsOffset = Vector3.new(0, 5, 0)
  49. billboard.AlwaysOnTop = true
  50. billboard.Parent = orb
  51.  
  52. local label = Instance.new("TextLabel")
  53. label.Size = UDim2.new(1, 0, 1, 0)
  54. label.BackgroundTransparency = 1
  55. label.Text = "you"
  56. label.TextColor3 = Color3.fromRGB(0, 255, 0)
  57. label.TextSize = 18
  58. label.Font = Enum.Font.Code
  59. label.TextStrokeTransparency = 0.5
  60. label.Parent = billboard
  61.  
  62. task.spawn(function()
  63. while orb and orb.Parent do
  64. for i = 3, 5, 0.1 do
  65. if not orb or not orb.Parent then break end
  66. orb.Size = Vector3.new(i, i, i)
  67. task.wait(0.05)
  68. end
  69. for i = 5, 3, -0.1 do
  70. if not orb or not orb.Parent then break end
  71. orb.Size = Vector3.new(i, i, i)
  72. task.wait(0.05)
  73. end
  74. end
  75. end)
  76.  
  77. return orb
  78. end
  79.  
  80. local do_desync = function()
  81. local plrs = game:GetService("Players")
  82. local lp = plrs.LocalPlayer
  83. local char = lp.Character
  84. if not char then notify("character not found") return false end
  85.  
  86. local root = char:FindFirstChild("HumanoidRootPart")
  87. local hum = char:FindFirstChildOfClass("Humanoid")
  88. if not root or not hum then notify("humanoidrootpart/humanoid not found") return false end
  89. if hum.Health <= 0 then notify("humanoid is dead") return false end
  90.  
  91. orb_pos = root.CFrame
  92. make_orb(orb_pos)
  93.  
  94. pcall(setsimulationradius, 0, 0)
  95.  
  96. pcall(setfflag, "NextGenReplicatorEnabledWrite4", "false")
  97. pcall(setfflag, "ReplicationBufferLimit", "0")
  98. pcall(setfflag, "NetworkOwnershipPercentage", "0")
  99.  
  100. task.wait(0.543)
  101.  
  102. root.CFrame = orb_pos
  103.  
  104. task.wait(0.1)
  105.  
  106. pcall(setfflag, "NextGenReplicatorEnabledWrite4", "true")
  107. pcall(setfflag, "ReplicationBufferLimit", "8")
  108. pcall(setfflag, "NetworkOwnershipPercentage", "100")
  109. pcall(setsimulationradius, 1000, 1000)
  110.  
  111. notify("desync enabled")
  112. return true
  113. end
  114.  
  115. module.enable = function()
  116. if enabled then return end
  117. enabled = true
  118. do_desync()
  119. end
  120.  
  121. module.disable = function()
  122. if not enabled then return end
  123. enabled = false
  124.  
  125. pcall(setfflag, "NextGenReplicatorEnabledWrite4", "false")
  126. pcall(setfflag, "ReplicationBufferLimit", "0")
  127. pcall(setsimulationradius, 0, 0)
  128.  
  129. task.wait(0.2)
  130.  
  131. pcall(setfflag, "NextGenReplicatorEnabledWrite4", "true")
  132. pcall(setfflag, "ReplicationBufferLimit", "8")
  133. pcall(setsimulationradius, 1000, 1000)
  134.  
  135. if orb then orb:Destroy() orb = nil end
  136. orb_pos = nil
  137.  
  138. notify("desync disabled")
  139. end
  140.  
  141. return module
Advertisement
Add Comment
Please, Sign In to add comment