Hello, I have a problem with checking my textbox text because it's case sensetive.
So basically I have a script that checks if word "god" is in the text box but I need to make it detect the word even if it has different case letters if players messes up or tests the possibilities.
txtbox.FocusLost:Connect(function(enterPressed)
if #txtbox.Text >1 then
local plrn = sounds[math.random(1, #sounds)]
wait(0.5)
plrn:Play()
if txtbox.Text:match("god") then
ben:ClearAllChildren()
txtbox:Destroy()
game.Workspace.Sound:Destroy()
wait(4)
game.Workspace.spooky:Play()
PS: the script is functioning fine with matching "god", I just need to make the word flexible so the function work with many variants without typing in each possible case letters.
I never knew my English was so bad at explaining my problems before I posted this.

1 comment
Thank you!