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: How would I script a Exam GUI?

Previous Thread :: Next Thread 
DavyJones118 is not online. DavyJones118
Joined: 07 Jun 2011
Total Posts: 370
22 Mar 2012 11:31 AM
I am inspired by Space Shuttle Exams in a game and I wanted to make one of my own, so far I have a Frame with a couple of buttons, the only question is, what do I put in them?

What do I want?

i would do something like
function getright()
if script.Parent.Parent.Option3.Clicked then

(This is the part where I don't know and the above script must contain errors)



Dont know what I am talking about? Go here.
http://www.roblox.com/Land-a-space-shuttle-update-place?id=27512964
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
22 Mar 2012 11:40 AM
[ Content Deleted ]
Report Abuse
DavyJones118 is not online. DavyJones118
Joined: 07 Jun 2011
Total Posts: 370
22 Mar 2012 03:06 PM
More replies?
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
22 Mar 2012 04:37 PM
Use the MouseButton1Down events and if you try to extend your knowledge about GUIs, try to check the lengendary Roblox wiki. It contains a lot of GUI tutorials.
Report Abuse
DavyJones118 is not online. DavyJones118
Joined: 07 Jun 2011
Total Posts: 370
23 Mar 2012 04:53 PM
So I should do -
x = script.Parent.Parent
plyr = game.Players.LocalPlayer

script.Parent.MouseButton1Down:connect(function() --The Gui will show INSTANTLY, right?
Stuff:Clone().Parent = plyr.PlayerGui
end)

if

x.Option3.MouseButton1Down then
x.Result.Text = 45% --if they get it right
x.q4.visible = true
wait()
end

script.Parent.MouseButton1Down:connect()
Report Abuse
DavyJones118 is not online. DavyJones118
Joined: 07 Jun 2011
Total Posts: 370
23 Mar 2012 05:02 PM
Or I could use

UDim2.new (0,0,0,0)
Report Abuse
DavyJones118 is not online. DavyJones118
Joined: 07 Jun 2011
Total Posts: 370
23 Mar 2012 05:06 PM
Or

game.Players.PlayerAdded:connect(function(Player)
local z = Instance.new("Frame")
local x = Instance.new("ScreenGui")
x.Parent = z
z.Parent = Player.PlayerGui
x.Position = UDim2.new(0.5, 0, 0.5, 0)
x.Size = UDim2.new(0.5, 0, 0.5, 0)
end)
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
23 Mar 2012 05:21 PM
You can just put em in the StarterGui. Also, you would probably add a script somewhere in the script that checks if the user got the question right. Maybe add a bool 'Chosen' in each question.
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
23 Mar 2012 06:35 PM
x.Result.Text = "45%" Try that. I'm not sure it will work.
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