For my game I need a script that will make it when a player touches a certain brick it will make words appear on screen for a few seconds then disappear. I do not wish to be given the script just merely put in the right direction because first of i have to idea where to start.
COMMUNITY QUESTION
I need help with a script to make words appear on screen?
1 answer
I would suggest learning how to use events, which you can do with tutorials or the ROBLOX wiki.
- In this case, the
Touchedevent would be useful, as it activates when a part is touched. - Make sure to check the object that touches the part to identify it as part of a character or another part in the Workspace. The
GetPlayerFromCharacterfunction is useful. - A
ScreenGuiis required for the player to see something on his/her screen, and aTextLabelcould be used to display text. - Lastly, you can use the
waitfunction to create a pause.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
It's useful to add that, while FE is enabled, scripts can't access PlayerGui. However, for this asker he probably doesn't use FE. Just useful to add.