Universal Script 📌
832 Views
59 Executions

Lag testing fun script

Universal Script 📌
jksgaming2015
jksgaming2015First script
1 year ago
Get an 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

Lag

Updates

  1. Script edited: Update script

  2. Script edited: Update script

View Raw
-- ServerScript, place in ServerScriptService
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")

-- Create RemoteEvent for button clicks
local lagEvent = Instance.new("RemoteEvent")
lagEvent.Name = "LagEvent"
lagEvent.Parent = ReplicatedStorage
print("LagEvent created in ReplicatedStorage")

-- Create GUI for each player
local function createGui(player)
    print("Creating GUI for player: " .. player.Name)
    local screenGui = Instance.new("ScreenGui")
    screenGui.Name = "LagTester"
    screenGui.ResetOnSpawn = false
    screenGui.Parent = player.PlayerGui

    local button = Instance.new("TextButton")
    button.Size = UDim2.new(0, 120, 0, 40)
    button.Position = UDim2.new(0, 20, 0, 200)
    button.Text = "Start Lag"
    button.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
    button.TextColor3 = Color3.new(1, 1, 1)
    button.Font = Enum.Font.SourceSansBold
    button.TextSize = 18
    button.Parent = screenGui

    local corner = Instance.new("UICorner")
    corner.CornerRadius = UDim.new(0, 10)
    corner.Parent = button

    -- Bind button click to RemoteEvent
    button.Activated:Connect(function()
        print("Button clicked by player: " .. player.Name)
        lagEvent:FireServer("toggle")
    end)

    return screenGui


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Script hub
3.0M
18.5M
Bumped 3 hours ago

Script hub

Hall of Fame #1

KeylessVerified script badgeYARHM Hub KEYLESS 2026

Script hub
119.5k
193.9k
Bumped 8 hours ago
Key System
Script hub
180.9k
1.8M
Bumped 9 hours ago
Key System
Universal Script 📌
1.2k
2.6k
Bumped 9 hours ago
Script hub
60.2k
244.1k
Bumped 9 hours ago
Key System
Universal Script 📌
6.2k
53.5k
Bumped 12 hours ago