Advertisement
Unknown___

FE Roblox Lag switch

Nov 22nd, 2023 (edited)
633
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. --[[ E TO ACTIVATE IT AND Q TO DEACTIVATE IT]]
  2. local db = true
  3.  
  4. local DEFAULT_ON_KEY = "e"
  5. local DEFAULT_OFF_KEY = "q"
  6.  
  7. local Player = game.Players.LocalPlayer
  8. local Mouse = Player:GetMouse()
  9. function SendMessage(a,b)
  10. game.StarterGui:SetCore("SendNotification", {
  11. Title = a;
  12. Text = b;
  13. Icon = "";
  14. Duration = .5;})
  15. end
  16.  
  17. SendMessage("Lagswitch","Successfully loaded")
  18.  
  19. Mouse.KeyDown:Connect(function(Key)
  20. if Key == DEFAULT_ON_KEY then
  21. if db == false then
  22. pcall(function()
  23. db = true
  24. settings():GetService("NetworkSettings").IncomingReplicationLag = math.huge
  25. end)
  26. end
  27. end
  28. if Key == DEFAULT_OFF_KEY then
  29. if db == true then
  30. pcall(function()
  31. db = false
  32. settings():GetService("NetworkSettings").IncomingReplicationLag = 0
  33. end)
  34. end
  35. end
  36. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement