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 teleport parts not smoothly transitioning.

Previous Thread :: Next Thread 
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
07 Jan 2017 07:04 PM
local CF1 = CFrame.new(0.9, -0.2, -1.4) * CFrame.fromEulerAnglesXYZ(math.rad(-85), math.rad(80), math.rad(-5))
local CF2 = CFrame.new(0.9, -0.2, -1.4) * CFrame.fromEulerAnglesXYZ(math.rad(-85), math.rad(80), math.rad(-5))
local DF1 = CFrame.new(-1, 0.6, -0.8) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-8), math.rad(20))
local DF2 = CFrame.new(-1, 0.6, -0.8) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-8), math.rad(20))




function fire(welds)
welds[1].C1 = CF1:lerp(CF2, 0.2)
welds[2].C1 = DF1:lerp(DF2, 0.2)
wait(0.04)
welds[1].C1 = CF2:lerp(CF1, 0.5)
welds[2].C1 = DF2:lerp(DF1, 0.5)
end


welds = {Character.Head:WaitForChild("weld1"), Character.Head:WaitForChild("weld2")}





spawn(function()
fire(welds)
end)
Report Abuse
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
07 Jan 2017 07:08 PM
yeah they won't they will just jump from 20% to 50%

you need a loop to make lerp smooth, it isn't like gui tweening
Report Abuse
Casualist is not online. Casualist
Joined: 26 Jun 2014
Total Posts: 4443
07 Jan 2017 07:08 PM
Why would it? You have 2 discrete steps with large gaps between them.
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
07 Jan 2017 07:09 PM
https://www.roblox.com/games/587989372/unnamed
I replace the shoot anim. with it, and I've tried extending the time how should I do this?
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
07 Jan 2017 07:25 PM
for i = 0, 1, .01 do
welds[1].C1 = CF1:lerp(CF2, i)
welds[2].C1 = DF1:lerp(DF2, i)
wait()
end



this is a spawn function and I'm trying to lerp welds but this doesn't even work...
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
07 Jan 2017 07:29 PM
Help? Example script???? For welds???
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
07 Jan 2017 07:37 PM
Trying to lerp the weld's C1 to the desired position.
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
07 Jan 2017 07:45 PM
b
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
07 Jan 2017 08:08 PM
b
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
07 Jan 2017 08:28 PM
b
Report Abuse
Casualist is not online. Casualist
Joined: 26 Jun 2014
Total Posts: 4443
07 Jan 2017 11:45 PM
You're spamming multiple threads offset by small time steps; leading to a ghost effect
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
07 Jan 2017 11:49 PM
I was asking for help, figured it out and now I'm asking for help on a different part of it lol.
Report Abuse
Casualist is not online. Casualist
Joined: 26 Jun 2014
Total Posts: 4443
07 Jan 2017 11:56 PM
Ah, didn't notice that. I'll check out the new thread.
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