|
| 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
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
| |
|
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 |
|
|
|
| 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 |
|
|
|
| 23 Mar 2012 05:02 PM |
Or I could use
UDim2.new (0,0,0,0) |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|