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 can i script this?

Previous Thread :: Next Thread 
Mitko0o1 is not online. 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 is not online. xxBsFxx
Joined: 26 Aug 2013
Total Posts: 3281
29 Aug 2013 12:06 PM
[ Content Deleted ]
Report Abuse
xxBsFxx is not online. xxBsFxx
Joined: 26 Aug 2013
Total Posts: 3281
29 Aug 2013 12:07 PM
[ Content Deleted ]
Report Abuse
Mitko0o1 is not online. 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 is not online. 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 is not online. xxBsFxx
Joined: 26 Aug 2013
Total Posts: 3281
29 Aug 2013 12:23 PM
[ Content Deleted ]
Report Abuse
xxBsFxx is not online. xxBsFxx
Joined: 26 Aug 2013
Total Posts: 3281
29 Aug 2013 12:28 PM
[ Content Deleted ]
Report Abuse
janthran is not online. 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 is not online. 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 is not online. xxBsFxx
Joined: 26 Aug 2013
Total Posts: 3281
29 Aug 2013 12:29 PM
[ Content Deleted ]
Report Abuse
Ludici is not online. 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 is not online. xxBsFxx
Joined: 26 Aug 2013
Total Posts: 3281
29 Aug 2013 12:30 PM
[ Content Deleted ]
Report Abuse
xxBsFxx is not online. xxBsFxx
Joined: 26 Aug 2013
Total Posts: 3281
29 Aug 2013 12:31 PM
[ Content Deleted ]
Report Abuse
Mitko0o1 is not online. 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 is not online. 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 is not online. xxBsFxx
Joined: 26 Aug 2013
Total Posts: 3281
29 Aug 2013 12:33 PM
[ Content Deleted ]
Report Abuse
Ludici is not online. 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 is not online. xxBsFxx
Joined: 26 Aug 2013
Total Posts: 3281
29 Aug 2013 12:35 PM
[ Content Deleted ]
Report Abuse
Ludici is not online. Ludici
Joined: 22 Jul 2013
Total Posts: 640
29 Aug 2013 12:35 PM
xd

~Make the simple, amazing~
Report Abuse
Mitko0o1 is not online. 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 is not online. Mitko0o1
Joined: 30 Nov 2010
Total Posts: 5725
29 Aug 2013 01:28 PM
Bump
Report Abuse
xxBsFxx is not online. xxBsFxx
Joined: 26 Aug 2013
Total Posts: 3281
29 Aug 2013 01:32 PM
[ Content Deleted ]
Report Abuse
Mitko0o1 is not online. 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
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