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

wont print functioning when i give it input. Help?

Asked by 2 years ago

Hello, my script is not printing functioning when it is suppose to. here is my code

local Players = game.Players

local Client = Players.LocalPlayer

local Target = script.Parent.Username



script.Parent.TextButton.MouseButton1Click:Connect(function()
    if script.Parent.Username.Text == Client.Name then
        script.Parent.Warning.Visible = true
    else
        if table.find(Target, Players.Name) then
            print("Functioning")
        end
    end

end)

Username is a textbox. the script is suppose to find the player that the client that is inputed in the textbox when i try the script there is not functioning. i am trying this with my friend

0
"table" doesn't seem to be defined in this chunk of code TheDude646 72 — 2y

Answer this question