'How do i make it so a player can talk to a bot on roblox?

I want to make it so after someone spawns they can look at a NPC and hold "E" then after they do that i want a screen gui to appear and tell them what they need to do. i want it so after they are done reading they can click "DONE" and the gui will dissapear. please help me with this code.



Solution 1:[1]

they can look at a NPC and hold "E"

Try using a ProximityPrompt for this. As 1BL1ZZARD said, you could use Dialogs for the

i want a screen gui to appear and tell them what they need to do. i want it so after they are done reading they can click "DONE"

However, you could also use a ScreenGui with the ProximityPrompt and make it Enabled with ProximityPrompt.Triggered:Connect.

Solution 2:[2]

Would these answer your question? https://developer.roblox.com/en-us/articles/Usage-of-dialogs / https://developer.roblox.com/en-us/articles/Designing-a-Dialog-Tree

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 helix
Solution 2 1BL1ZZARD