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 » Scripters
Home Search
 

Re: How to make a script start after one ends.

Previous Thread :: Next Thread 
souldgierboy1234 is not online. souldgierboy1234
Joined: 14 Jan 2012
Total Posts: 371
21 Nov 2014 08:25 AM
So, I have two scripts, and I want the script to start right after one ends.
So, for example. I have two bricks. Each with different scripts inside of them, and I did

wait(2)

parent.Script.BrickColor = BrickColor.Red()

And then my other script for example would be


parent.Script.BrickColor = BrickColor.Black()

But I would want to make the second brick change right after the first brick, so how? Any help would be appreciated. Thanks.
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
21 Nov 2014 08:32 AM
Put a wait(2.08) in the other one hehe
Report Abuse
souldgierboy1234 is not online. souldgierboy1234
Joined: 14 Jan 2012
Total Posts: 371
21 Nov 2014 08:42 AM
Mhm, thought of that but didn't try it. Let me try it. Also, know how to make it continuous?
Report Abuse
HexC3D is not online. HexC3D
Joined: 30 Jun 2012
Total Posts: 10044
21 Nov 2014 08:50 AM
Loop it.
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
21 Nov 2014 08:55 AM
while true do?
Report Abuse
souldgierboy1234 is not online. souldgierboy1234
Joined: 14 Jan 2012
Total Posts: 371
21 Nov 2014 08:58 AM
Alright, thanks man, I'll try while true do. Also, if you wanna check out what I've done so far, here: http://www.roblox.com/Watch-TV-In-ROBLOX-Beta-place?id=187904619
Report Abuse
souldgierboy1234 is not online. souldgierboy1234
Joined: 14 Jan 2012
Total Posts: 371
21 Nov 2014 09:03 AM
Yea, that doesn't work. Any other ideas? Thanks for trying, though.
Report Abuse
ExtraTelamon is not online. ExtraTelamon
Joined: 26 Dec 2011
Total Posts: 4629
21 Nov 2014 09:07 AM
disable the 2nd one and then do

script.Parent.script2.Disabled = false
Report Abuse
jatl8 is not online. jatl8
Joined: 07 Aug 2009
Total Posts: 17439
21 Nov 2014 10:15 AM
Parent.Script?

Is that supposed to be like that?
Report Abuse
coolfun101 is not online. coolfun101
Joined: 25 Jul 2011
Total Posts: 652
21 Nov 2014 10:20 AM
It would work a lot better if you simply grouped the two parts then just had one script in the model

script.Parent.PartOne.Script.BrickColor = BrickColor.Red()
wait()
script.Parent.PartTwo.BrickColor = BrickColor.Black()


and if you wanted it to do it forever then just loop it

while true do
script.Parent.PartOne.Script.BrickColor = BrickColor.Red()
wait()
script.Parent.PartTwo.BrickColor = BrickColor.Black()
end

Using one script would just simply your whole problem
Report Abuse
souldgierboy1234 is not online. souldgierboy1234
Joined: 14 Jan 2012
Total Posts: 371
21 Nov 2014 12:13 PM
But you don't get what I need it for. Go to the link I posted earlier. That's what I'm trying to do... I want it to kind of be like a TV. Right? There are more than 2 blocks I need to change. Go to the place, and look at the huge face. I need that to loop. The two bricks were examples. What I'm actually trying to do is in the game. The link I posted on this forum earlier.
Report Abuse
coolfun101 is not online. coolfun101
Joined: 25 Jul 2011
Total Posts: 652
21 Nov 2014 12:20 PM
@Sould the script i gave you would work you just need to edit it a bit >.<

So make it like a grid for that face

a.b.c.d.e.f.g.h.i
b-------------bh
c-------ce
d-----dd
e
f
g
h
i

You get the point

just name all the parts like that and then

while true do
script.Parent.bh.Script.BrickColor = BrickColor.Red()
wait()
script.Parent.ce.BrickColor = BrickColor.Black()
wait()
script.Parent.dd.BrickColor = BrickColor.Black()
end

And then just copy and past extra lines for more changes

I did something similar to what you are trying to make but a lot more complicated
http://www.roblox.com/Tust-place?id=173048911
Give it a few mins to load if you look at it
Report Abuse
anaIyze is not online. anaIyze
Joined: 29 May 2014
Total Posts: 2048
21 Nov 2014 12:33 PM
'And then just copy and past extra lines for more changes'

Ah, yes. You will certainly recieve my Kohl dll (UNPATCHED 2014),, For your intelligence.
Report Abuse
coolfun101 is not online. coolfun101
Joined: 25 Jul 2011
Total Posts: 652
21 Nov 2014 12:40 PM
What is wrong with what i said ?.?
Report Abuse
anaIyze is not online. anaIyze
Joined: 29 May 2014
Total Posts: 2048
21 Nov 2014 12:41 PM
Do you want my kohl hack or not/??
Report Abuse
coolfun101 is not online. coolfun101
Joined: 25 Jul 2011
Total Posts: 652
21 Nov 2014 12:43 PM
No not really O.o
Report Abuse
souldgierboy1234 is not online. souldgierboy1234
Joined: 14 Jan 2012
Total Posts: 371
21 Nov 2014 12:57 PM
I appreciate it, but I didn't really want anyone to do the script for me. I wanna do it myself. Just needed a little help. Anways, I finally got it to work. Since I need it to blend in, come out blend in come out over and over, Here's what I did! It works!

repeat
wait (2)
script.Parent.BrickColor = BrickColor.Red()
wait (2)
script.Parent.BrickColor = BrickColor.Black()
until 1 == 10



Sorry if it's messy. When I copy and pasted it, that's how it looked.
Report Abuse
souldgierboy1234 is not online. souldgierboy1234
Joined: 14 Jan 2012
Total Posts: 371
21 Nov 2014 01:03 PM
Now all I need is ideas. How can I use this tool to make some sort of fake tv kind of. I don't know. But, what can I do with this now? What can I make with this 'tv' What can I use this for? Ugh, I'm stumped.
Report Abuse
ExtraTelamon is not online. ExtraTelamon
Joined: 26 Dec 2011
Total Posts: 4629
21 Nov 2014 02:44 PM
well you can take a series of screen shots and make it a stop motion film
Report Abuse
souldgierboy1234 is not online. souldgierboy1234
Joined: 14 Jan 2012
Total Posts: 371
21 Nov 2014 07:09 PM
I know, but I want to use it in a game sort of way.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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