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
 

CFrame?

Previous Thread :: Next Thread 
Seizurezxzz is not online. Seizurezxzz
Joined: 12 Feb 2013
Total Posts: 1297
08 Jun 2014 09:20 AM
I use a for loop in a part moving script, thats uses:
for i = 1,10 do
part.Position.CFrame = Vector3.new (0 , 0, 0)
end
But, that proplem is, it dosen't go through over things, when it hits something, it just halts. How do I make it go through stuff without stopping?
Report Abuse
VerifiedName is not online. VerifiedName
Joined: 26 Jul 2009
Total Posts: 4534
08 Jun 2014 09:21 AM
use cframe not vector3, and that code does nothing except make the position 0,0,0.

Report Abuse
ComBatPro is not online. ComBatPro
Joined: 27 Dec 2010
Total Posts: 205
08 Jun 2014 09:21 AM
for i = 1, 10 do
part.CFrame = CFrame.new(0, 0, 0)
end

Use CFRame
Report Abuse
Seizurezxzz is not online. Seizurezxzz
Joined: 12 Feb 2013
Total Posts: 1297
08 Jun 2014 09:24 AM
@Ver, I know, I was posting the way I use to move it:
part.Position.CFrame = part.Position.CFrame + Vector3.new(0, 0, 0)
But now instead, I should use:
part.Position.CFrame = part.Position.CFrame + CFrame.new(0, 0, 0) ?
Report Abuse
ComBatPro is not online. ComBatPro
Joined: 27 Dec 2010
Total Posts: 205
08 Jun 2014 09:28 AM
I posted what you should use, but go ahead and ignore me. I don't mind.
Report Abuse
Seizurezxzz is not online. Seizurezxzz
Joined: 12 Feb 2013
Total Posts: 1297
08 Jun 2014 09:30 AM
Yours just will set the CFrame, I need my part to move.
Report Abuse
ComBatPro is not online. ComBatPro
Joined: 27 Dec 2010
Total Posts: 205
08 Jun 2014 09:38 AM
part.CFrame = part.CFrame * CFrame.new(0, 0, 0)
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