generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Hey!

Previous Thread :: Next Thread 
TheAmazingDani is not online. TheAmazingDani
Joined: 11 Jun 2012
Total Posts: 44
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
TheAmazingDani is not online. TheAmazingDani
Joined: 11 Jun 2012
Total Posts: 44
14 Jul 2012 05:48 AM
BTW I know pretty much nothing about scripting. :/
Report Abuse
Solotaire is not online. 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
TheAmazingDani is not online. TheAmazingDani
Joined: 11 Jun 2012
Total Posts: 44
14 Jul 2012 05:59 AM
Thanks. I'll try it.
Report Abuse
TheAmazingDani is not online. TheAmazingDani
Joined: 11 Jun 2012
Total Posts: 44
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
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
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
scaredhobo is not online. scaredhobo
Joined: 10 Jun 2011
Total Posts: 749
14 Jul 2012 10:16 AM
Same, Idk how to make gui's or script.
Report Abuse
ninjaknight101 is not online. ninjaknight101
Joined: 04 Apr 2011
Total Posts: 1281
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
ninjaknight101 is not online. ninjaknight101
Joined: 04 Apr 2011
Total Posts: 1281
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
Sonofmetal is not online. Sonofmetal
Joined: 07 Feb 2012
Total Posts: 1159
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
Sonofmetal is not online. Sonofmetal
Joined: 07 Feb 2012
Total Posts: 1159
14 Jul 2012 11:10 AM
the tele part idk :D
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
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
ninjaknight101 is not online. ninjaknight101
Joined: 04 Apr 2011
Total Posts: 1281
14 Jul 2012 04:39 PM
Lol true, but she doesn't know how to script. xD
Report Abuse
TheAmazingDani is not online. TheAmazingDani
Joined: 11 Jun 2012
Total Posts: 44
14 Jul 2012 07:14 PM
That's funny to you? How freaking rude.
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
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 is not online. 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
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
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 is not online. 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
ninjaknight101 is not online. ninjaknight101
Joined: 04 Apr 2011
Total Posts: 1281
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
TheAmazingDani is not online. TheAmazingDani
Joined: 11 Jun 2012
Total Posts: 44
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image