Advertisement
TheRobloxGuy

Untitled

Mar 18th, 2021
2,283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.76 KB | None | 0 0
  1. setting = settings().Network
  2. local Effect = Instance.new("ColorCorrectionEffect")
  3. Effect.Parent = game.Lighting
  4. Effect.Saturation = -1
  5. Effect.Brightness = 0
  6. Effect.Contrast = 0
  7. local Sound = Instance.new("Sound")
  8. Sound.Parent = game.Workspace
  9. Sound.SoundId = "rbxassetid://1055792303"
  10.  
  11. toggle = false
  12.  
  13. Effect.Enabled = false
  14. function onKeyPress(inputObject, gameProcessedEvent)
  15.     if inputObject.KeyCode == Enum.KeyCode.RightControl then   
  16.         if toggle == false then
  17.             Sound:Play()
  18.             wait(2.25)
  19.             setting.IncomingReplicationLag = 1000
  20.             Effect.Enabled = true
  21.             toggle = true
  22.         else
  23.             setting.IncomingReplicationLag = 0
  24.             Effect.Enabled = false
  25.             toggle = false
  26.         end
  27.  
  28.     end
  29. end
  30.  
  31. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement