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

How to scan for a value within a table's table?

Asked by
aem92 10
5 years ago

I'm trying to make a script that fires the input and string for the move through a remote to the server and I want to scan if keycode and string = the jutsu list's table of fire jutsu.

if I'm rewriting it wrong please show me another way thanks.

local JutsuList = {
    Fire = {
        [Enum.KeyCode.F] = "Fireball Jutsu";
        [Enum.KeyCode.G] = "Pheonix Sage Jutsu";
        [Enum.KeyCode.H] = "Grand Fireball Jutsu";
    }

}

game.ReplicatedStorage.Remote.Jutsu.OnServerEvent:connect(function(player, keycode, strings)

end)

Answer this question