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
 

Re: Tweening CFrames

Previous Thread :: Next Thread 
colbert2677 is not online. colbert2677
Joined: 28 Feb 2010
Total Posts: 1380
27 Apr 2016 06:41 PM
How is one able to tween the Camera CFrame or a Brick CFrame so that moves similarly to TweenPosition (Quad style) of a GuiObject?
Report Abuse
Crimsonal is online. Crimsonal
Joined: 23 Apr 2011
Total Posts: 1795
27 Apr 2016 06:59 PM
local Speed = 0.1
local newCFrame = CFrame.new(0,0,0)


Part.CFrame = Part.CFrame:lerp(newCFrame, Speed)
Report Abuse
colbert2677 is not online. colbert2677
Joined: 28 Feb 2010
Total Posts: 1380
27 Apr 2016 07:03 PM
Thanks.
Report Abuse
colbert2677 is not online. colbert2677
Joined: 28 Feb 2010
Total Posts: 1380
27 Apr 2016 07:05 PM
...hold on.

I said Tween like a GUI on Quad. This gave me instant CFrame movement.
Report Abuse
Crimsonal is online. Crimsonal
Joined: 23 Apr 2011
Total Posts: 1795
27 Apr 2016 07:07 PM
Use loops
Report Abuse
colbert2677 is not online. colbert2677
Joined: 28 Feb 2010
Total Posts: 1380
27 Apr 2016 07:30 PM
That was rather unhelpful. I could've settled for Interpolate.
Report Abuse
colbert2677 is not online. colbert2677
Joined: 28 Feb 2010
Total Posts: 1380
27 Apr 2016 07:37 PM
Forget about it. I found a Tween module.
Report Abuse
Crimsonal is online. Crimsonal
Joined: 23 Apr 2011
Total Posts: 1795
28 Apr 2016 05:06 AM
wtf what I gave you is interpolate

ok whatevs
Report Abuse
eRanged is online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
28 Apr 2016 05:22 AM
:lerp works for me. It tweens good for me
Report Abuse
Jammer622 is not online. Jammer622
Joined: 19 Nov 2008
Total Posts: 1739
28 Apr 2016 06:03 AM
colbert, I'm hoping you didn't just gloss over the fact that you can use loops like "for i = 1, 10, do"
Report Abuse
WoolHat is online. WoolHat
Joined: 19 May 2013
Total Posts: 1873
28 Apr 2016 06:08 AM
He wants a smooth transition. When you're working with a simple for loop and a constant increment, you're just going to get an ugly, jumpy or very slow transition.

I use :lerp. It works pretty well. I never figured out how to utilize other modules for lerping, but if it works for OP then it works
Report Abuse
colbert2677 is not online. colbert2677
Joined: 28 Feb 2010
Total Posts: 1380
21 May 2016 10:01 PM
:lerp() gives you a linear CFrame tween. What I'm hunting for is a tween that's similar to Enum.EasingStyle.Quad.

for loops would work but then again, would throw me linear interpolation.
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