This is the script I have, it works fine, I need help to find out how to able the player to be able to enter two or maybe more different codes, if someone could help it would be much appreciated! Find my current script below.
local gear = game.ReplicatedStorage:WaitForChild('AssaultRifle')
script.Parent.MouseButton1Click:connect(function()
if script.Parent.Parent.Input.Text == 'Gun!' then
gear:Clone().Parent = game.Players.LocalPlayer.Backpack
gear:Clone().Parent = game.Players.LocalPlayer.StarterGear
script.Parent.Parent.Input.Text = ''
script.Parent.Parent.Text = 'Success!'
wait(1)
script.Parent.Text = 'Submit'
else
script.Parent.Parent.Input.Text = ''
script.Parent.Text = 'Invalid Code'
wait(1)
script.Parent.Text = 'Submit'
end
end)
As I said this script works for the current code, but I want players to be able to enter 2 codes, (once someone helps me I'm sure I could add more on my own) I've tried to have another script with the same script but I need 2 submit buttons! Help please! :)

2 comments
Please format your code by pressing the Lua button and placing your code in between the generated lines.
Oh thanks, done it now :)