Button.MouseButton1Click:Connect(function()
if TextHolder.Text == Codes.Code1 then
if Check1.Value == false then
Check1.Value = true
elseif Check1.Value == false then
TextHolder.Text = "Code Already Redeemed"
Event:FireServer("Code1")
TextHolder.Text = "Success! 500 Coins Rewarded"
elseif TextHolder.Text == Codes.Code2 then
if Check2.Value == false then
Check2.Value = true
elseif Check2.Value == false then
TextHolder.Text = "Code Already Redeemed"
Event:FireServer("Code2")
TextHolder.Text = "Success! 250 Coins Rewarded"
elseif TextHolder.Text == Codes.Code3 then
if Check3.Value == false then
Check3.Value = true
elseif Check3.Value == false then
TextHolder.Text = "Code Already Redeemed"
Event:FireServer("Code3")
TextHolder.Text = "Sucess! 100 Coins Rewarded"
else TextHolder.Text = "Invalid/Expired Code"
end
end
end
end
end)