
Lag switch MobileOnly
Universal Script 📌
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Description
This script create a small lag switch GUI for Roblox. Features: - Lag switch button that simulate short network lag when pressed - WiFi signal icon change (signal on → signal off) while lag active - Draggable GUI so you can move it anywhere on the screen - Hold button for 5 seconds to lock / unlock the GUI position - GUI position saved while script still running - Auto scale system so GUI size follow screen resolution Note: Sometimes the GUI can feel a little hard to drag. This happens because the lag switch system is running heavy calculations while the button is pressed. Since the lag logic runs in RenderStepped and uses many math loops, it can slightly interfere with drag input while the lag is active. Credits: The lag switch logic used in this script is based on an open source script originally posted on ScriptBlox by Guyboi. The original script simply makes your game lag when executed. Original open source poster: https://scriptblox.com/u/Guyboi This version is a modified version where the original lag logic was adapted into a clean GUI system with drag, lock system, mobile support, and WiFi signal indicator This feature is explained by chatgpt Open source
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local player = Players.LocalPlayer
local guiParent = player:WaitForChild("PlayerGui")
getgenv().guiPositions = getgenv().guiPositions or {}
getgenv().guiLocks = getgenv().guiLocks or {}
local lagDuration = 0.12
local lagIntensity = 100000
if guiParent:FindFirstChild("lagGui") then
return
end
local function addScale(gui)
local s = Instance.new("UIScale")
local cam = workspace.CurrentCamera
local function update()
s.Scale = math.clamp(cam.ViewportSize.Y / 720, 0.85, 1.35)
end
update()
cam:GetPropertyChangedSignal("ViewportSize"):Connect(update)
s.Parent = gui
end
local function holdSystem(button, callback, name)
local holdTime = 5
local locked = getgenv().guiLocks[name] or false
local holding = false
local holdStart = 0
local holdTriggered = false
button.InputBegan:Connect(function(input)
if input.UserInputType ~= Enum.UserInputType.MouseButton1 and input.UserInputType ~= Enum.UserInputType.Touch then return end
holding = true
holdStart = tick()
holdTriggered = false


Nggak enak MBG nya
In Roblox studio