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: Floating brick

Previous Thread :: Next Thread 
starkiller523 is not online. starkiller523
Joined: 04 Jul 2012
Total Posts: 362
14 Apr 2014 06:42 PM
Hi, i am a beginner to script, still learning. And i was wonderer how you would make a Brick Float up and then back down...



Report Abuse
starkiller523 is not online. starkiller523
Joined: 04 Jul 2012
Total Posts: 362
14 Apr 2014 06:42 PM
scripting*
Report Abuse
Soybeen is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
14 Apr 2014 06:44 PM
Try using a "For i =" loop to raise and lower the position of the brick.
http://wiki.roblox.com/index.php?title=Loops
Report Abuse
starkiller523 is not online. starkiller523
Joined: 04 Jul 2012
Total Posts: 362
14 Apr 2014 06:54 PM
Is that as simple as it gets? Or could you make it a little simpler? :P Like I said... I'm new.
Report Abuse
starkiller523 is not online. starkiller523
Joined: 04 Jul 2012
Total Posts: 362
14 Apr 2014 06:54 PM
I did try, i'm not being lazy. Just with Loops i always get lost...
Report Abuse
transIate is not online. transIate
Joined: 20 Jun 2013
Total Posts: 2699
14 Apr 2014 06:57 PM
t=tick());
coroutine.wrap(function()
while wait''do
part.CFrame=CFrame.new(0,4+t,0)*CFrame.Angles(0,math.rad(180),0);
end end)();


Report Abuse
Soybeen is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
14 Apr 2014 07:00 PM
Will that bring the brick up and back down?
Report Abuse
konichiwah91 is not online. konichiwah91
Joined: 18 Jan 2011
Total Posts: 3677
14 Apr 2014 07:10 PM
Try checking out this video.

https://www.youtube.com/watch?v=O2Ikk1JSInw

This goes over for loops and how it can be used to do a non-forever loop using for statements.


If you want, with enough patience, you can check out this decent series. It explains clearly to new players and will help you a lot. IMO, this guy deserves more views =P
Report Abuse
transIate is not online. transIate
Joined: 20 Jun 2013
Total Posts: 2699
14 Apr 2014 07:30 PM
my code works use it k
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