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: I'm making a fortress gate, and I need help

Previous Thread :: Next Thread 
rp069 is not online. rp069
Joined: 22 Apr 2011
Total Posts: 6206
26 May 2012 07:52 PM
at the moment I have it opening with 20 cframed bricks for a smooth transition, but it still looks ugly and it takes up over 50 lines of script for me to open just one half of the first section (there's 4 sections, 20 parts each)

I know there's a way to cframe the bricks in the gate so that they open and close like you'd expect a gate to, I just don't know how to do it. help?
Report Abuse
rp069 is not online. rp069
Joined: 22 Apr 2011
Total Posts: 6206
26 May 2012 08:22 PM
bump because I keep pushing up other people's posts >~<
Report Abuse
rp069 is not online. rp069
Joined: 22 Apr 2011
Total Posts: 6206
27 May 2012 04:10 AM
seriously, BUMP
Report Abuse
Aurarus is not online. Aurarus
Joined: 22 Dec 2008
Total Posts: 4761
27 May 2012 04:34 AM
That's the very hard but simple method of doing it. :p


There's a method which repeats a number in intervals (1, 2, 3, 4, so on) and it looks like this:


for i = 1, 10 do

blahblahblah
wait(insertanyamountoftimehere)
end


Now, let me explain.

"for i"

for this amount of intervals"

"1, 10"

all numbers between 1 and 10 (1, 2, 3 , 4, 5, 6, 7, 8, 9, 10)
This can be changed to anything.


Now, anything before end referred to as "i" will now take that number's place.

So like,

"for 1, 3 do

print("i")

wait(1)
end"

Over the course of a total of 3 seconds, it will print this:

"1"
"2"
"3"

You could also make something like

"for 1, 10 do

print("10 - i")

wait(1)
end"

for a countdown effect.


Report Abuse
rp069 is not online. rp069
Joined: 22 Apr 2011
Total Posts: 6206
27 May 2012 05:31 AM
the problem with using that is that the labelling system I have goes Gate1a, Gate1b etc. and there's varying amounts of "gates" depending on whether it opens Horizontally or Vertically.

still useful though, I might use that info for a flag or something
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