Mitko0o1
|
  |
| Joined: 30 Nov 2010 |
| Total Posts: 5725 |
|
|
| 29 Aug 2013 12:02 PM |
| Hello, as you can see I'm not BC member and I can't add badges, so i want to make winning badges while playing with a poping up guis, like if you touch some brick, the gui shows for 10 seconds saying that you got an achievement. I know how to create the gui but how can i script it to show when you touch a brick and also when you get the achievement once it doesn't show up again. |
|
|
| Report Abuse |
|
|
xxBsFxx
|
  |
| Joined: 26 Aug 2013 |
| Total Posts: 3281 |
|
| |
|
xxBsFxx
|
  |
| Joined: 26 Aug 2013 |
| Total Posts: 3281 |
|
| |
|
Mitko0o1
|
  |
| Joined: 30 Nov 2010 |
| Total Posts: 5725 |
|
|
| 29 Aug 2013 12:09 PM |
| Sorry I don't know well to script and can you please explain it in detail? |
|
|
| Report Abuse |
|
|
Ludici
|
  |
| Joined: 22 Jul 2013 |
| Total Posts: 640 |
|
|
| 29 Aug 2013 12:12 PM |
When the player enters add a Boolean Value to him/her. When the player touches the brick set the boolean value to true, and when the boolean value is set to true clone the Gui to the player. Use TweePosition to make it nice.
~Make the simple, amazing~ |
|
|
| Report Abuse |
|
|
xxBsFxx
|
  |
| Joined: 26 Aug 2013 |
| Total Posts: 3281 |
|
| |
|
xxBsFxx
|
  |
| Joined: 26 Aug 2013 |
| Total Posts: 3281 |
|
| |
|
janthran
|
  |
| Joined: 15 May 2009 |
| Total Posts: 17429 |
|
|
| 29 Aug 2013 12:29 PM |
If you ask me I'll give you some really stupid and complicated way of doing it because that's just how I script efficiency isn't a thing |
|
|
| Report Abuse |
|
|
Ludici
|
  |
| Joined: 22 Jul 2013 |
| Total Posts: 640 |
|
|
| 29 Aug 2013 12:29 PM |
Okay then. But he doesn't want the Gui to appear as soon as the player enters does he? :/
~Make the simple, amazing~ |
|
|
| Report Abuse |
|
|
xxBsFxx
|
  |
| Joined: 26 Aug 2013 |
| Total Posts: 3281 |
|
| |
|
Ludici
|
  |
| Joined: 22 Jul 2013 |
| Total Posts: 640 |
|
|
| 29 Aug 2013 12:30 PM |
What xx said. That should work.
~Make the simple, amazing~ |
|
|
| Report Abuse |
|
|
xxBsFxx
|
  |
| Joined: 26 Aug 2013 |
| Total Posts: 3281 |
|
| |
|
xxBsFxx
|
  |
| Joined: 26 Aug 2013 |
| Total Posts: 3281 |
|
| |
|
Mitko0o1
|
  |
| Joined: 30 Nov 2010 |
| Total Posts: 5725 |
|
|
| 29 Aug 2013 12:31 PM |
| I'm editing my place right now I will see what will happen. |
|
|
| Report Abuse |
|
|
Ludici
|
  |
| Joined: 22 Jul 2013 |
| Total Posts: 640 |
|
|
| 29 Aug 2013 12:32 PM |
Well.. You forgot to set the value to true, and some if statements. You should write: if bv == false then And use Data Persisitance as well. This way next time the player comes he won't be awarded the achievement again.
~Make the simple, amazing~ |
|
|
| Report Abuse |
|
|
xxBsFxx
|
  |
| Joined: 26 Aug 2013 |
| Total Posts: 3281 |
|
| |
|
Ludici
|
  |
| Joined: 22 Jul 2013 |
| Total Posts: 640 |
|
|
| 29 Aug 2013 12:34 PM |
You wrote that as I was typing my response..
~Make the simple, amazing~ |
|
|
| Report Abuse |
|
|
xxBsFxx
|
  |
| Joined: 26 Aug 2013 |
| Total Posts: 3281 |
|
| |
|
Ludici
|
  |
| Joined: 22 Jul 2013 |
| Total Posts: 640 |
|
|
| 29 Aug 2013 12:35 PM |
xd
~Make the simple, amazing~ |
|
|
| Report Abuse |
|
|
Mitko0o1
|
  |
| Joined: 30 Nov 2010 |
| Total Posts: 5725 |
|
|
| 29 Aug 2013 01:12 PM |
So I made a brick at spawnpoint and named it SpecialBrick and The gui i named is YouEntered and here is how i edited the script is there any problem, because when i wrote it wait (10) was underlined with red color.
game.Players.PlayerAdded:connect(function(add) b = Instance.new("BoolValue",add.Character) bv = b.Value bv = false function onTouch(part) add.PlayerGui.YouEntered.Visible = true add.PlayerGui.YouEntered:TweenPosition(UDim2.new(0,10,0,400)--change the position of this to where you want it to appear wait(10) add.PlayerGui.YouEntered.Visible = false add.PlayerGui.YouEntered:TweenPosition(UDim2.new(1000,1000,1000,1000)
end end)
SpecialBrick.Touched:connect(onTouch) |
|
|
| Report Abuse |
|
|
Mitko0o1
|
  |
| Joined: 30 Nov 2010 |
| Total Posts: 5725 |
|
| |
|
xxBsFxx
|
  |
| Joined: 26 Aug 2013 |
| Total Posts: 3281 |
|
| |
|
Mitko0o1
|
  |
| Joined: 30 Nov 2010 |
| Total Posts: 5725 |
|
|
| 29 Aug 2013 01:39 PM |
| I founded it! It say there must be ,, ) " at line 7 and at line 10 :) |
|
|
| Report Abuse |
|
|