local input = script.Parent.Input
local output = script.Parent.Output
if input.Text:lower() == "a" then
output.Text = "v"
end
I am trying to type a in a textbox called Input and another textbox called Output to say another letter ( V )
local input = script.Parent.Input
local output = script.Parent.Output
if input.Text:lower() == "a" then
output.Text = "v"
end
I am trying to type a in a textbox called Input and another textbox called Output to say another letter ( V )
The script is only going to check once. You need to set up an event which will trigger whenever the player has something typed in the input. Try this:
local input = script.Parent.Input
local output = script.Parent.Output
input.FocusLost:Connect(function()
if input.Text:lower() == "a" then
output.Text = "v"
end
end)
Use string.lower
local input = script.Parent:WaitForChild("Input")
local output = script.Parent:WaitForChild("Output")
function Changed()
if string.lower(input.Text) == "a" then
output.Text = "v"
end
end
input.Changed:Connect(Changed)
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
he is tho...
ok, i changed other stuff