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

How can I tell if the player has not typed anything at all in the chat?

Asked by 3 years ago

I am coding for a breaking point type game, and I am trying to get it so if the player hasn't typed anything after the time limit, they get sent to the lobby.

The problem is, I do not know how to check if the player hasn't typed anything at all.

This is what I have so far.

local Teams = game:GetService("Teams")

_G.ChatInputStorage = function(Chat, Player)
    local storage = ""
    if Chat > 6 or Chat < 1 then
        print('bad input')
        if _G.Time == 0 and Chat == "" then
            Player.Team = Teams.Lobby
            Player.Character.Humanoid.Health = 0
        end
    end
end

Thanks.

0
how do u type nothing in chat raid6n 2196 — 3y

Answer this question