Here is the localscript on a ScreenGui object, wordDis is also a child of ScreenGUI. `` function displayWord(key)
if(key == Enum.KeyCode.R) then
script.Parent.wordDis.Text = "yes"
end
if(key == Enum.KeyCode.F) then
script.Parent.ScreenGUI.wordDis.Text = "yo"
end
end
game:GetService("UserInputService").InputBegan:connect(displayWord)

2 comments
I am still figuring out how to use the formatting on here XD
What does the output say? Also, do not use brackets on the "IF" statements.