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: Lerp

Previous Thread :: Next Thread 
djboy is not online. djboy
Joined: 16 Mar 2008
Total Posts: 794
09 Jun 2015 04:30 PM
How would i use Lerp on welds(For animations) when Lerp uses Position..(Also if i wanted to add the rotation to it 2)
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
09 Jun 2015 04:30 PM
www.roblox.com/CFrameInterpolator-Module-item?id=161739700
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
09 Jun 2015 04:31 PM
Stravant's CFrame Interpolation module.
Report Abuse
djboy is not online. djboy
Joined: 16 Mar 2008
Total Posts: 794
09 Jun 2015 04:35 PM
Mind doing quick runthrough on how i would use this?
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
09 Jun 2015 04:38 PM
Requiring module returns a function. Give that function two CFrames, a start CFrame and an end CFrame. That'll return yet another function (and theta), which you can give an alpha to get a CFrame in between it. For successful block tweening:

local CInt = require(Module)
local _,Interpolate = CInt(CFrame.new(3,4,1), CFrame.new(1,6,1))
for i = 0,1,.01 do
wait()
part.CFrame = Interpolate(i)
end
Report Abuse
djboy is not online. djboy
Joined: 16 Mar 2008
Total Posts: 794
09 Jun 2015 04:40 PM
What if i wanted to add the Angles?
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