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 » Scripters
Home Search
 

CFrame random accelerating issue

Previous Thread :: Next Thread 
Iliuminatis is not online. Iliuminatis
Joined: 30 Nov 2008
Total Posts: 1524
28 Aug 2016 08:38 AM
for i=80, -150, -0.5 do
game.Workspace.House:SetPrimaryPartCFrame(CFrame.new(game.Workspace.House.PrimaryPart.Position)*CFrame.Angles(math.pi/i,0,0))
wait()
end


For some reason my model starts randomly accelerating when it rotates on certain position. It doesn't matter what's the starting rotating position is, but it always rotates on 1 side much faster than the others.
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
28 Aug 2016 08:40 AM
Perhaps because you are dividing in the wrong order, and as i approaches 0 math.pi/i approaches infinity.


Report Abuse
Iliuminatis is not online. Iliuminatis
Joined: 30 Nov 2008
Total Posts: 1524
28 Aug 2016 08:44 AM
ooooo

I'm really bad at maths, can you help me out a bit? I don't understand at all how I have to divide it "correctly".
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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