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
 

A block that spins.

Previous Thread :: Next Thread 
fwepstudios is not online. fwepstudios
Joined: 13 Jan 2014
Total Posts: 12
29 Sep 2014 06:26 PM
When the rotation gets to -180,90,-180 the block doesnt rotate anymore. How would I make this script so it rotates infinitely?

while true do
wait(0.001)
script.Parent.Rotation = script.Parent.Rotation + Vector3.new(0,1,0)

end
Report Abuse
wazap is not online. wazap
Joined: 29 Jun 2007
Total Posts: 23234
29 Sep 2014 06:28 PM
while true do
wait(0.001)
script.Parent.CFrame = script.Parent.CFrame*CFrame.Angles(0, math.rad(1), 0)

end
Report Abuse
DaMrNelson is not online. DaMrNelson
Joined: 27 Jul 2009
Total Posts: 4405
29 Sep 2014 07:14 PM
You could also try out BodyRotationalVelocity, if you're looking for that sorta thing.
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