This bit of code is supposed to update a string value when called, but it doesn't. It simply returns an error pointing to it. Anyone know why?

Also, is there any easy way to just get it to read out the hour and minute instead of having it read out seconds, too?

        func = function( p ) -- functions go HERE
            print(p.Name .. " locked the back door!")
		game.Workspace.FaraVoice.Value = ("It is currently " .. game.Lighting.TimeOfDay ", sir.")
		end

5 comments

1

What's the error?

0

It doesn't give me any specific error, it just points to line 3.

1

How does it point to line 3, but not give an error? Run the game, tell use the red and blue text it has in the output or Developer Console or where ever you're testing this.

1

You missed the .. after game.Lighting.TimeOfDay

0

Oh, duh.