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 » Game Design
Home Search
 

Re: Help something spin?

Previous Thread :: Next Thread 
coolrobert1315 is not online. coolrobert1315
Joined: 23 Jan 2012
Total Posts: 93
23 Apr 2015 07:52 PM
Is there a way to put a script in an object to make it spin, without using a CFrame or motor? If you know a script I can simply just put into a block to make it spin, please comment :D
Report Abuse
lifeissohilarious is not online. lifeissohilarious
Joined: 12 Mar 2010
Total Posts: 150
23 Apr 2015 08:10 PM
Out of curiosity, why wouldn't you want to use CFrame? As far as I know, it's by far the easiest way to go about doing something like this.

OT stick this in a script inside of an anchored brick and it'll spin.


rotX = 0
rotY = 0
rotZ = 0
while wait() do
script.Parent.Rotation = Vector3.new(script.Parent.Rotation.X + rotX, script.Parent.Rotation.Y + rotY, script.Parent.Rotation.Z + rotZ)
end


with rotX being X rotation, and the others respectively.
Wonks out when using Y axis cause it's not CFrame.
Report Abuse
coolrobert1315 is not online. coolrobert1315
Joined: 23 Jan 2012
Total Posts: 93
24 Apr 2015 06:44 PM
Thanks. It works, but it is EXTREMELY wobbley. Do you know how to fix this?
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
24 Apr 2015 06:45 PM
Yeah, it's called using CFrame you nub.


I script -~ chimmihc
Report Abuse
DarkenedCodex is not online. DarkenedCodex
Joined: 07 Sep 2014
Total Posts: 816
24 Apr 2015 06:49 PM
On 10 quality it looks nice. Problem is loads of people can't have 10 graphics quality in a full game without lagging
Report Abuse
DarkenedCodex is not online. DarkenedCodex
Joined: 07 Sep 2014
Total Posts: 816
24 Apr 2015 06:50 PM
wrong thread. gg^
Report Abuse
coolrobert1315 is not online. coolrobert1315
Joined: 23 Jan 2012
Total Posts: 93
24 Apr 2015 08:56 PM
Im a NUB? Well.
Report Abuse
FlyScript is not online. FlyScript
Joined: 05 Aug 2010
Total Posts: 2884
24 Apr 2015 11:05 PM
Why don't you want to use CFrame? It works fine whether your part is unanchored, anchored, and even if it's welded (I think. If not, change the C0/C1 of the weld with the same method and it'll work).

--Change these to whatever (angles per second in degrees)
local part = game.Workspace.Part
local rotX = 0
local rotY = 5
local rotZ = 0

--Actual code
while wait(0.1) do
part.CFrame = part.CFrame * CFrame.Angles(math.rad(rotX/10),math.rad(rotY/10),math.rad(rotZ/10))
end
Report Abuse
coolrobert1315 is not online. coolrobert1315
Joined: 23 Jan 2012
Total Posts: 93
26 Apr 2015 10:10 AM
Sorry, I just want to learn different ways I guess :3
Report Abuse
jackctaylor is not online. jackctaylor
Joined: 13 Aug 2010
Total Posts: 603
26 Apr 2015 10:58 AM
last time I screwed around with studio you could do this easily with BodyAngularVelocity
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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