How do i make it so a player can talk to a bot on roblox? - 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.

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.

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

Related

How can I activate and deactivate the spawner in time?

I want the "Spawner Script" to stop and the "Reward Gold Spawner Script" to be active in the second picture, as shown in the 1st picture, when I click the Star Gameobject, and after a certain second I want the "Spawner Script" to be active again, but I could not do it in any way. How can I do it?
I tried a lot of things but couldn't, for example spawner scripts don't work and when I call after certain seconds it didn't call.
!Not: I solved the problem I forgot to put a loop I don't know how I overlooked it.
Have you tried disabling and reenabling the object with the script? object.SetActive(false).
If I understand your question right.

Is there a way to use the display preview option in the display block to display the output of wired connections in EV3?

I'm trying to see if there's a way to use the display block in EV3 as a basic print function. I'm working from home and don't have a brick to test the code with so was hoping to just use the display preview option to output variables but I haven't been able to find a way. It will only show the standard 'Wired_1FAC2752-7229-46'. I've tried putting a wait block after it, putting it in a loop and clearing the display first but the preview never displays anything.
Thanks in advance
What about trying a "virtual" brick to run your programm?
Have a look at the "Virtual Robotics Toolkit": https://www.virtualroboticstoolkit.com/
It's not perfect and its not free but maybe a good workaround if you don't have any hardware at Home.

VB Hiding Child Forms

I'm making a program that involves children, kind of. I'm using form2.Owner = me instead of parenting Mdi.
I have a button on Form1 that needs to hide the child forms, or even move them to back so I can only see Form1. Is there anyway to do this? If so, I hope there's also a way to undo as well?
If you only know of a way for parenting Mdi, I'll be willing to change, as long as it can get finished.
Thanks,
Zach
"Is there anyway to do this?"
FormName.Hide()
"I hope there's also a way to undo as well?"
FormName.Show()
If you simply want to hide it momentarily from prying eyes, I suggest minimising the form.
Me.WindowState = FormWindowState.Minimized

Info window on iOS?

I am trying to implement in my code something like an info window , but not exactly. I found a very nice tutorial here , Info Window for iOS , but what i want to do is when i press on my button , the space under it to expand and show my various options.
I mean i dont want another window to open , but something like a space under the button expanding , revealing stuff. Maybe you have seen this in applications with buttons with a + next to them , to reveal more info , and then with a - to hide it.
How exactly is this called on iOS and is there a tutorial you are aware of about it?
It would be good for you to look into UIView animation blocks. These will be useful in the future as well. This tutorial doesn't do the exact thing you are looking for because it is fairly specific, but this will tell you how to use animation blocks, and you should be able to turn that into what you are looking for. It is also a good thing to know.
http://www.raywenderlich.com/2454/how-to-use-uiview-animation-tutorial
It sounds like you are looking for a popup menu, which isn't really provided in iOS. But you can look at third-party controls such as this one:
http://www.cocoacontrols.com/platforms/ios/controls/qbpopupmenu

how to close a method/function on iPhone xCode?

when your project is getting bigger and bigger we have to look for ways to make it more easy to read.
The point is, I want to close all my functions using any key short code in my Xcode, let see the picture attached to understand what I mean:
(I cannot set any picture becuase I need more reputation...)
Well I mean:
> - (void) process1 {
}
If we press on the row on top left, the process will get closed. How can I use a key short code to close all my functions/methods on my class (.m)?
Thank you!
Check the View→Code Folding menu for options and hot-keys.
I'm pretty sure it's here. You'll also find other cool stuff
Hidden Features of Xcode