|
| 14 Jul 2012 05:48 AM |
| I really would like to know how to make a GUI. Not just a solid colored old lookin' one. One you might see as your backpack or hotbar, and just modern. I need to make about 5 buttons, that teleport you to a different place for each button Example: Button 1 would tele you to somewhere I built a certain place at. Button 2 would tele you somewhere besides that, to another certain place I built at... etc.. |
|
|
| Report Abuse |
|
|
|
| 14 Jul 2012 05:48 AM |
| BTW I know pretty much nothing about scripting. :/ |
|
|
| Report Abuse |
|
|
Solotaire
|
  |
| Joined: 30 Jul 2009 |
| Total Posts: 30356 |
|
|
| 14 Jul 2012 05:53 AM |
You can make a GUI by doing the following: Insert > Object > ScreenGUI Insert > Object > Frame -- Set position/size Insert > Object > TextButton -- Set position/size
After that, I assume you'd want to add a script. In your case, it would be something similar to script.Parent.MouseButton1Down:connect(function()
plr = script.Parent.Parent.Parent.Parent.Character
plr.Position = Vector3.new(x, y, z) end)
That code may or may not work, seeing as I haven't tested it and am not really thinking clearly. |
|
|
| Report Abuse |
|
|
| |
|
|
| 14 Jul 2012 06:18 AM |
| It didn't really work.. of course I might've screwed something up since I know nothing :/ |
|
|
| Report Abuse |
|
|
|
| 14 Jul 2012 09:50 AM |
plr.Torso.CFrame = CFrame.new(0, 0, 0)
That should teleport you.
------------------------- ~thedestroyer115, like me? Join my forum fan group!: http://www.roblox.com/Groups/group.aspx?gid=643337~ |
|
|
| Report Abuse |
|
|
|
| 14 Jul 2012 10:16 AM |
| Same, Idk how to make gui's or script. |
|
|
| Report Abuse |
|
|
|
| 14 Jul 2012 10:20 AM |
I can't tell you too much, but if you want one that makes itself for you, try this:
http://wiki.roblox.com/index.php/RbxGui_(Library)
Really good at making what you want. |
|
|
| Report Abuse |
|
|
|
| 14 Jul 2012 10:21 AM |
Fixed script:
script.Parent.MouseButton1Down:connect(function()
plr = script.Parent.Parent.Parent.Parent.Character
plr.Torso.CFrame = Vector3.new(x, y, z) end)
|
|
|
| Report Abuse |
|
|
|
| 14 Jul 2012 11:09 AM |
When you are making a GUI try NOT to edit it in a script that will become VERY confusing...Just goto insert>ScreenGUI MAKE SURE IT IS IN THE STARTER GUI!Then in the screen GUI Insert>Frame then edit the frame as you like with the positioning/size then you have your frame!Then you add text labels and edit those to your likings :D Hope i helped :) |
|
|
| Report Abuse |
|
|
| |
|
|
| 14 Jul 2012 03:24 PM |
Lol, ninja, you just had to put my code in the script and it would have worked.
------------------------- ~thedestroyer115, like me? Join my forum fan group!: http://www.roblox.com/Groups/group.aspx?gid=643337~ |
|
|
| Report Abuse |
|
|
|
| 14 Jul 2012 04:39 PM |
| Lol true, but she doesn't know how to script. xD |
|
|
| Report Abuse |
|
|
|
| 14 Jul 2012 07:14 PM |
| That's funny to you? How freaking rude. |
|
|
| Report Abuse |
|
|
|
| 14 Jul 2012 08:26 PM |
Wow, you took that the wrong way. Calm down, we did not mean to anger you at all. We were just helping...
------------------------- ~thedestroyer115, like me? Join my forum fan group!: http://www.roblox.com/Groups/group.aspx?gid=643337~ |
|
|
| Report Abuse |
|
|
mamaguy
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
|
| 14 Jul 2012 08:42 PM |
@The, in every single way I have moved the torso's position it kills the player. Do it like this: Put the five parts anywhere, name them PartA, PartB, PartC, PartD, and PartE So like: local a = game.Workspace.PartA --So on and so forth script.Parent.Parent.Parent.Parent.Character:MoveTo(a.Position, a) -- So on and so forth. |
|
|
| Report Abuse |
|
|
|
| 15 Jul 2012 07:46 AM |
No no no. Everything is connected to the torso, so if you move the torso everything "breaks" and you die. SO use CFrame.new instead of Vector3.new. Example"
Torso.CFrame = CFrame.new(0, 0, 0)
That should move the whole character.
------------------------- ~thedestroyer115, like me? Join my forum fan group!: http://www.roblox.com/Groups/group.aspx?gid=643337~ |
|
|
| Report Abuse |
|
|
mamaguy
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
|
| 15 Jul 2012 09:23 AM |
| I think the MoveTo method is easier because you can direct an object in Workspace. :L |
|
|
| Report Abuse |
|
|
|
| 15 Jul 2012 09:43 AM |
I just use the CFrame method, but like this:
TelePart = Workspace.Part for i, v in pairs(game.Players:GetPlayers()) if v.Character:findFirstChild("Torso") then v.Character.Torso.CFrame = TelePart.CFrame+Vector3.new(math.random(1,5), i*4, math.random(1,5)) end end
--Tada!
|
|
|
| Report Abuse |
|
|
|
| 28 Jul 2012 11:52 PM |
| I guess you guys dont understand I want to make 5 buttons to tele you to 5 different places T_T You think I know all this stuff? XD |
|
|
| Report Abuse |
|
|
pwnedu46
|
  |
| Joined: 23 May 2009 |
| Total Posts: 7534 |
|
|
| 29 Jul 2012 12:17 AM |
http://wiki.roblox.com/index.php/Beginner%27s_guide_to_GUI http://wiki.roblox.com/index.php/Beginner%27s_GUI_Tutorial |
|
|
| Report Abuse |
|
|