favor
|
  |
| Joined: 26 Feb 2009 |
| Total Posts: 280 |
|
|
| 03 Apr 2013 10:14 PM |
I'm trying to make a mission select GUI that has a code for every mission, but I can't seem to find a way to script it. Help?
Please do not hesitate to ask questions if you need to.
REWARD: Working method will get 100R$ minimum and 200R$ maximum. (NBC Members will get 10-20R$ from a gear commission.)
SIGNATURE: "Signs don't stop acts of violence, armed citizens do." |
|
|
| Report Abuse |
|
|
|
| 03 Apr 2013 10:15 PM |
| Vector3 Values and :findFirstChild() will be your best friend on this one. Also, no money needed. |
|
|
| Report Abuse |
|
|
favor
|
  |
| Joined: 26 Feb 2009 |
| Total Posts: 280 |
|
|
| 03 Apr 2013 10:16 PM |
Can you explain how those functions would help me?
"Signs don't stop acts of violence, armed citizens do." |
|
|
| Report Abuse |
|
|
|
| 03 Apr 2013 10:19 PM |
| How would you like it? A list with names where you click a name and it teleports you to a position? |
|
|
| Report Abuse |
|
|
|
| 03 Apr 2013 10:22 PM |
| Vector3 allows for a player to be teleported via CFraming, with the value being where the player goes. Using :findFirstChild(), you can find Vector3's whose name is the code that you typed in. If you type in a correct code, you can have the script teleport you to the Vector3 value that you need to go to. |
|
|
| Report Abuse |
|
|
favor
|
  |
| Joined: 26 Feb 2009 |
| Total Posts: 280 |
|
|
| 03 Apr 2013 10:30 PM |
@ElectricAxel, Here's a full explanation: You click the teleport Gui, a code window Gui pops up, type in a code, if the code is correct then it teleports you to a desired location, if you put in a different code, it teleports you to a different mission. I hope you understand.
@Robloxian, Thank you for you help, I'll try those functions that you gave me.
"Signs don't stop acts of violence, armed citizens do." |
|
|
| Report Abuse |
|
|
|
| 03 Apr 2013 10:38 PM |
| I do understand, thanks for explaining. Would you like me to script this? It sounds fun, but I don't know how much scripting you understand so I have to adapt my code to your understanding. |
|
|
| Report Abuse |
|
|
|
| 03 Apr 2013 11:32 PM |
It shouldn't to be difficult. You can make the GUI popup through simple use of the .Visible property. If you have basic understandings of tables, you can set up the values of the code and positions in the table. Then, suing a loop, you can check if the textbox's
local TextBox = script.Parent --Or wherever it is local Player = Game.Players.LocalPlayer --This is the player in a localscript, but could be changed local Missions = { ["12345"] = Vector3.new( 0, 0, 0); ["00000"] = Vector3.new( 100, 100, 100); } TextBox.Changed:connect(function(Prop) if Prop ~= "Text" then return end for Code, Position in pairs(Missions) do if Code == TextBox.Text and Player and Player.Character then Player.Character:MoveTo(Position) end end end)
(╯°□°)> KMXD
|
|
|
| Report Abuse |
|
|
|
| 03 Apr 2013 11:32 PM |
It shouldn't be too difficult. *
(╯°□°)> KMXD |
|
|
| Report Abuse |
|
|
favor
|
  |
| Joined: 26 Feb 2009 |
| Total Posts: 280 |
|
|
| 04 Apr 2013 01:20 PM |
@Knightmare,
Amazing... This should help me a lot, thank you. I'll try it out and if it works, I"ll give you 200R$. |
|
|
| Report Abuse |
|
|
favor
|
  |
| Joined: 26 Feb 2009 |
| Total Posts: 280 |
|
|
| 04 Apr 2013 01:42 PM |
| http://24.media.tumblr.com/tumblr_lwkceeD5qA1r63vu7o1_400.gif |
|
|
| Report Abuse |
|
|
favor
|
  |
| Joined: 26 Feb 2009 |
| Total Posts: 280 |
|
|
| 04 Apr 2013 05:17 PM |
@KnightmareXD, Thank you, your script worked perfectly. I will send you a PM so you can claim your reward.
"Signs don't stop acts of violence, armed citizens do." |
|
|
| Report Abuse |
|
|
|
| 04 Apr 2013 05:18 PM |
No, thank you.
(╯°□°)> KMXD |
|
|
| Report Abuse |
|
|
|
| 04 Apr 2013 05:27 PM |
| I'll take the money if you just really want to get rid of it :p |
|
|
| Report Abuse |
|
|
|
| 04 Apr 2013 05:58 PM |
I know this thread is over, but i just HAD to say dude, awesome line there! "Signs don't stop acts of violence, armed citizens do." Not sure what the proper name for that sort of line that ends at each reply to a post is, but i'm sure its not "that line :P"
2nd amendment ftw.
|
|
|
| Report Abuse |
|
|
janthran
|
  |
| Joined: 15 May 2009 |
| Total Posts: 17429 |
|
|
| 04 Apr 2013 06:35 PM |
>Iamnumbercool: It's called a signature |
|
|
| Report Abuse |
|
|
favor
|
  |
| Joined: 26 Feb 2009 |
| Total Posts: 280 |
|
|
| 08 Apr 2013 05:24 PM |
Thanks, dude, I'm glad you agree with the 2nd amendment.
"Signs don't stop acts of violence, armed citizens do." |
|
|
| Report Abuse |
|
|