This code won't change the text in question appropriately. The idea is that you get a different random response each time. I'm awful at if statements... Help?

Interfaces = game.Workspace.FaradayInterface
        function( p )
            print(p.Name .. " activated the status report function")
local response = math.random(1,3)  
if response == 1 then 
    game.ServerScriptService.FaraVoice.Value = "Ready and waiting, sir."
if response == 2 then
    game.ServerScriptService.FaraVoice.Value = "Awaiting your instruction."
if response == 3 then
    game.ServerScriptService.FaraVoice.Value = "Ready to serve."
wait(0.2)
local text = game.ServerScriptService.FaraVoice.Value
local y = game:GetService("Chat"):Chat(Interfaces, ""..text, Enum.ChatColor.Green)

				wait(0.2)
				local text = game.ServerScriptService.FaraVoice.Value
				local y = game:GetService("Chat"):Chat(Interfaces, ""..text, Enum.ChatColor.Green)
				
        end

3 comments

0

You don't have any ends...

0

Code updated to show entire function for further clarification.

0

You still don't have enough ends. Every if statement on lines 5-9 should have ends.