It's skipping the else statement for some reason???
local UIS = game:GetService("UserInputService")
local TwitterCodes = {
["HereIsYourReward25"] = {Gems = 50, coins = 100},
["SecretCode"] = {Gems = 100, coins = 20},
}
function check()
for i, v in pairs(TwitterCodes) do
if script.Parent.TextBox.Text == i then
print("You gained " .. v.coins .. " Cash! and " .. v.Gems .. " Gems!")
else
print(script.Parent.TextBox.Text, " Is not a valid code")
end
end
end
UIS.InputBegan:Connect(function(input, gameprocessed)
if gameprocessed then return end
if input.KeyCode == Enum.KeyCode.E then
check()
end
end)

2 comments
that means that the requirement is meant. Could you please send a video of what is happening?
that means that the requirement is met* auto correct