Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How to make a gui appear when a player lags? [closed]

Asked by
Ap_inity 112
7 years ago

This question already has an answer here:

Is it possible to get the ping of a player?

I have no script this time, lol.. Ok, so, I've searched google, nothing. I've searched scripting helpers, nothing. I've searched roblox models, nothing. So, anyone can help me? What i'm trying to do is a script that makes a gui appear when a player has lag, just like in lumber tycoon 2. I hope someone helps.. xD

0
You could attempt to create a clock between the server and client, if the client clock falls behind then the server fires the client to display the gui. Kareem35 79 — 7y

Marked as Duplicate by Programical, Spongocardo, blowup999, and TheHospitalDev

This question has been asked before, and already has an answer. If those answers do not fully address your question, then please ask a new question here.

Why was this question closed?

1 answer

Log in to vote
0
Answered by
blowup999 659 Moderation Voter
7 years ago
while true do
    local howLong = wait(.05)
    if howLong > .1 then
        addLagGui()
    end
end
Ad