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

AFK Script [Broken]

Asked by
Jerqo 0
10 years ago

Well, I've been scripting and I decided to script an AFK System... But there is one problem, it works, but only in play solo...

while wait(1) do
    if math.abs(lastTouch - tick()) > secondsUntilDetectAFK then
        afk.Value = true
        if not ff or not plr.Character:FindFirstChild("ForceField") then
        ff=Instance.new("ForceField", plr.Character)
    plr.Character.Humanoid.MaxHealth = math.huge
0
That is part of the script, and it's broken (that is what it says) Jerqo 0 — 10y

Answer this question