Ad
Log in to vote
0

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

Asked by 5 days 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 2326 — 5d

Answer this question