Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[ E TO ACTIVATE IT AND Q TO DEACTIVATE IT]]
- local db = true
- local DEFAULT_ON_KEY = "e"
- local DEFAULT_OFF_KEY = "q"
- local Player = game.Players.LocalPlayer
- local Mouse = Player:GetMouse()
- function SendMessage(a,b)
- game.StarterGui:SetCore("SendNotification", {
- Title = a;
- Text = b;
- Icon = "";
- Duration = .5;})
- end
- SendMessage("Lagswitch","Successfully loaded")
- Mouse.KeyDown:Connect(function(Key)
- if Key == DEFAULT_ON_KEY then
- if db == false then
- pcall(function()
- db = true
- settings():GetService("NetworkSettings").IncomingReplicationLag = math.huge
- end)
- end
- end
- if Key == DEFAULT_OFF_KEY then
- if db == true then
- pcall(function()
- db = false
- settings():GetService("NetworkSettings").IncomingReplicationLag = 0
- end)
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement