---
title: "Lag switch v2 | Universal Roblox Script - ScriptBlox"
description: "Lag switch v2 for any Roblox game: Lags your game . And it’s open source :) Created by me :)"
canonical_url: "https://scriptblox.com/script/Universal-Script-Lag-switch-v2-74917"
meta:
  "og:description": "Lag switch v2 for any Roblox game: Lags your game . And it’s open source :) Created by me :)"
  "og:image": "https://scriptblox.com/images/script/0-1765701303253.jpg"
  "og:title": "Lag switch v2 | Universal Roblox Script - ScriptBlox"
  "twitter:description": "Lag switch v2 for any Roblox game: Lags your game . And it’s open source :) Created by me :)"
  "twitter:image": "https://scriptblox.com/images/script/0-1765701303253.jpg"
  "twitter:title": "Lag switch v2 | Universal Roblox Script - ScriptBlox"
---

> Index of every page on this site: [llms.txt](https://scriptblox.com/llms.txt)

![Universal Script 📌](https://scriptblox.com/images/script/0-1765701303253.jpg)

# **Lag switch v2**

[**Universal Script 📌**](https://scriptblox.com/game/universal)**![Guyboi](https://scriptblox.com/images/photo/67738b07c4046068d9a8d492-1745648787787.jpeg) [Guyboi](https://scriptblox.com/u/Guyboi)First script**

1 year ago

[**Get an executor**](https://scriptblox.com/executors?kind=executor)

Please login to perform these actions:

## **Does it work? **

**No reports yet **

No reports yet. Tried it? Be the first to say.

Also noticed:

## Description

Lags your game . And it’s open source :) Created by me :)

[View Raw](https://scriptblox.com/raw/Universal-Script-Lag-switch-v2-74917)

```
local coreGui = game:GetService("CoreGui")
local runService = game:GetService("RunService")
local userInputService = game:GetService("UserInputService")

-- SETTINGS
local LAG_DURATION = 0.12 -- lag duration (milliseconds)
local LAG_INTENSITY = 100000 -- lag intensity (I recommend, don't change this value)
local BUTTON_SIZE = Vector2.new(200, 80)
local BUTTON_TRANSPARENCY = 0.7
local OUTLINE_THICKNESS = 3
local TEXT_PADDING = 20 -- Keeps text inside the button

-- GUI Setup
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "CleanLagButton"
screenGui.ResetOnSpawn = false
screenGui.Parent = coreGui

-- Main Button Container
local buttonContainer = Instance.new("Frame")
buttonContainer.Name = "ButtonContainer"
buttonContainer.Size = UDim2.new(0, BUTTON_SIZE.X, 0, BUTTON_SIZE.Y)
buttonContainer.Position = UDim2.new(0.5, -BUTTON_SIZE.X/2, 0.8, -BUTTON_SIZE.Y/2)
buttonContainer.BackgroundTransparency = 1
buttonContainer.Parent = screenGui

-- Main Button
local button = Instance.new("TextButton")
button.Name = "lag"
button.Size = UDim2.new(1, 0, 1, 0)
button.Position = UDim2.new(0, 0, 0, 0)
button.BackgroundColor3 = Color3.fromRGB(230, 46, 46)
button.BackgroundTransparency = BUTTON_TRANSPARENCY
button.Text = "LAG"
button.Font = Enum.Font.ArialBold
button.TextSize = 32
button.TextColor3 = Color3.fromRGB(255, 255, 255)
button.TextStrokeTransparency = 1
button.TextXAlignment = Enum.TextXAlignment.Center -- Center text always


```

## **Comments **

**4**

Log in to join the conversation. [**Login **](https://scriptblox.com/login?redirect=/script/Universal-Script-Lag-switch-v2-74917)

![Syntraa's profile picture](https://scriptblox.com/images/photo/6650ea67d037cb86943def79-1794266137783.jpg)

[**Syntraa**](https://scriptblox.com/u/Syntraa)Keyless Creator

![Keyless Script Creator Badge](https://scriptblox.com/_ipx/_/images/keyless.webp)

Lv 134 months ago

not to be rude or whatever, but at line this line (local LAG\_DURATION = 0.12) it isnt in milliseconds, its in seconds XD so if you ran this script without changing you would freeze for 0.12 seconds or 120 milleseconds

1

![Animationguy's profile picture](https://scriptblox.com/images/photo/68d9bfefd194f70f8ab21797-1791811264677.jpg)

[**Animationguy**](https://scriptblox.com/u/Animationguy)Lv 64 months ago

I prefer using desync playground to see if this is fe or not

1

![Ashieash's profile picture](https://scriptblox.com/images/user-default.webp)

[**Ashieash**](https://scriptblox.com/u/Ashieash)8 months ago

How do I apply it tho?

1

![TEAMSXLLYJOINNOW's profile picture](https://scriptblox.com/images/user-default.webp)

[**TEAMSXLLYJOINNOW**](https://scriptblox.com/u/TEAMSXLLYJOINNOW)9 months ago

i dont know if this is good or not

1

```json
{"@context":"https://schema.org","@type":"SoftwareSourceCode","@id":"https://scriptblox.com/script/Universal-Script-Lag-switch-v2-74917#script","url":"https://scriptblox.com/script/Universal-Script-Lag-switch-v2-74917","name":"Lag switch v2","programmingLanguage":"Lua","runtimePlatform":"Roblox","author":{"@type":"Person","name":"Guyboi","url":"https://scriptblox.com/u/Guyboi"},"datePublished":"2025-12-14T08:35:03.260Z","image":"https://scriptblox.com/images/script/0-1765701303253.jpg","isAccessibleForFree":true}
```

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://scriptblox.com/#website","@type":"WebSite","description":"Search free Roblox scripts uploaded by the community, with live status for every major executor. Browse by game, copy the loadstring and run it in your executor.","inLanguage":"en","name":"ScriptBlox","url":"https://scriptblox.com/"},{"@id":"https://scriptblox.com/script/Universal-Script-Lag-switch-v2-74917#webpage","@type":"WebPage","description":"Lag switch v2 for any Roblox game: Lags your game . And it’s open source :) Created by me :)","name":"Lag switch v2 | Universal Roblox Script - ScriptBlox","url":"https://scriptblox.com/script/Universal-Script-Lag-switch-v2-74917","breadcrumb":{"@id":"https://scriptblox.com/script/Universal-Script-Lag-switch-v2-74917#breadcrumb"},"isPartOf":{"@id":"https://scriptblox.com/#website"},"mainEntity":{"@id":"https://scriptblox.com/script/Universal-Script-Lag-switch-v2-74917#script"},"potentialAction":[{"@type":"ReadAction","target":["https://scriptblox.com/script/Universal-Script-Lag-switch-v2-74917"]}]},{"@id":"https://scriptblox.com/script/Universal-Script-Lag-switch-v2-74917#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://scriptblox.com","position":1},{"@type":"ListItem","name":"Universal","item":"https://scriptblox.com/game/universal","position":2},{"@type":"ListItem","name":"Lag switch v2","position":3}]}]}
```

## Sitemap

See the full [sitemap](https://scriptblox.com/sitemap.md) for all pages.
