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: CFrame

Previous Thread :: Next Thread 
Suixle is not online. Suixle
Joined: 12 May 2012
Total Posts: 231
05 Sep 2012 07:39 PM
Well, I attempted to make a script that makes a brick start up like a fan, slow at first, then it goes fast, but I failed All I could make was make the block start fast, then slow down, which was not what I wanted. Can someone help me make the script I wanted.
Report Abuse
thecaptain97 is not online. thecaptain97
Joined: 17 Jun 2010
Total Posts: 4987
05 Sep 2012 08:10 PM
http://wiki.roblox.com/index.php/Cframe


Use the Rotation Stuff in That
Report Abuse
techn0guyx is not online. techn0guyx
Joined: 24 May 2009
Total Posts: 718
05 Sep 2012 08:33 PM
Should be roughly like this

speed = 0
maxSpeed = math.pi/2 --max. 90 degrees turn, half a radian
active = false



function speedUp()

active = true

while speed + 0.1 < maxSpeed do --add speed until we reach the maximum
speed = speed + 0.1
end

speed = maxSpeed

end



function speedDown()

while speed - 0.1 > 0 do
speed = speed - 0.1
end

speed = 0
active = false

end



while wait() do
if active then
brick.CFrame = brick.CFrame * CFrame.Angles(0, speed, 0) --changes rotation Y
end
end
Report Abuse
techn0guyx is not online. techn0guyx
Joined: 24 May 2009
Total Posts: 718
05 Sep 2012 08:46 PM
gah I'm stupid, forgot a wait() in all the while loops. It should wait for a fraction of a second between speed changes AND CFraming if you actually want to see anything. >.>
Report Abuse
crusada91 is not online. crusada91
Joined: 04 Sep 2010
Total Posts: 684
05 Sep 2012 10:35 PM
K, lol
Report Abuse
crusada91 is not online. crusada91
Joined: 04 Sep 2010
Total Posts: 684
05 Sep 2012 10:59 PM
a
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