How can I make the player lag?

hello!

I know this sound very weird but I made a Custom Ping and I want when the ping get higher I want the player to lag and when the ping drops the lag goes any idea how do I do that??

You could use a custom camera script to make it only update every 0.2 seconds or something like that…

Try making an FPS capper for your game and cap it to whatever you want

Why do you want them to lag lol are you trying to increase their performance or trying to ruin it for them…

I would assume it could be like some sort of admin thing…

You can cap the FPS by using tick() (how much time elapses)
Here’s a simple script:

local RunService = game:GetService("RunService")

local MaxFPS = 15

while true do
    local Tick1 = tick()
    RunService.Heartbeat:Wait()
    repeat until (Tick1 + 1/MaxFPS) < tick()
end
1 Like

I think he wants to make all players high ping so it’s “fair” to all and low ping players will not have advantage over high ping players?

1 Like

I’m making a Challenge game for example: try to win the game with only 15 fps and 100 Ping something like that.

Idk if there’s a way to cap the ping but you can cap the fps.
You can make player Walkspeed and JumpPower to 0 and add a delay for activattion.

for example: Player presses space but since the jump is 0 he can’t jump but a script will force him to jump after few second afterward with JumpPower 50 and resets it back.