local m=Color3.new(1,0,0)local M=Color3.new(0,1,0)
-- We take currentWord, then add an ! to the beginning of it.
-- The ! is a character that will not be used in the words in this typing test.
-- Then we add a ! to the beginning of the user input, then we find if it is a substring of currentWord2.
-- For example, we find if "!tes" is a substring of the current word, "!testing ".
-- If we did not have have the ! at the beginning of the word, "ting" would register as correct, as it is a substring of "testing".
-- The ! ensures that the substring is at the beginning of the word.

local colourWrong = Color3.new(1, 0, 0) -- red, #ff0000
local colourCorrect = Color3.new(0, 1, 0) -- green, #00ff00
