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 
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
20 Aug 2017 12:02 AM
local goal = script.Parent.PrimaryPart.CFrame+Vector3.new(55,55,0)

game:GetService('RunService').Heartbeat:connect(function(step)
print'me'
script.Parent.PrimaryPart.CFrame:lerp(goal,step/2)
end)
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
20 Aug 2017 12:08 AM
halp ;( It won't even move... It prints and all meaning its going but the lerp doesn't work at all.
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
20 Aug 2017 12:10 AM
bbbbb
Report Abuse
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
20 Aug 2017 12:11 AM
primarypart.CFrame = cframe:lerp


Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
20 Aug 2017 12:11 AM
Exactly what I'm doing tho
Report Abuse
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
20 Aug 2017 12:12 AM
??

script.Parent.PrimaryPart.CFrame = script.Parent.PrimaryPart.CFrame:lerp(goal,step/2)


Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
20 Aug 2017 12:12 AM
RIP didn't notice, this is why I use the forum :D
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
20 Aug 2017 12:14 AM
The only issue is that it only moves the part not the model... ;(
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
20 Aug 2017 12:18 AM
b
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
20 Aug 2017 12:21 AM
rip dis
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
20 Aug 2017 12:26 AM
argh
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
20 Aug 2017 12:33 AM
b
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
20 Aug 2017 12:47 AM
bbbbb
Report Abuse
Casualist is not online. Casualist
Joined: 26 Jun 2014
Total Posts: 4443
20 Aug 2017 01:07 AM
youtube.com/watch?v=n-ALVU_SU4Y
youtube.com/watch?v=IkE7rz_qT4w

script.Parent.PrimaryPart.CFrame = script.Parent.PrimaryPart.CFrame:lerp(goal,step/2)
Report Abuse
Casualist is not online. Casualist
Joined: 26 Jun 2014
Total Posts: 4443
20 Aug 2017 01:08 AM
Just weld everything to the primary part, have primary part as part0 of the welds.
Report Abuse
Casualist is not online. Casualist
Joined: 26 Jun 2014
Total Posts: 4443
20 Aug 2017 01:11 AM
Alternative:

script.Parent:SetPrimaryPartCFrame(script.Parent.PrimaryPart.CFrame:lerp(goal,step/2))
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
20 Aug 2017 01:13 AM
I did weld them to it, and it still doesn't work.
Report Abuse
Casualist is not online. Casualist
Joined: 26 Jun 2014
Total Posts: 4443
20 Aug 2017 01:14 AM
See option 2
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
20 Aug 2017 01:26 AM
^ I tried the welding and stuff :/
Report Abuse
Casualist is not online. Casualist
Joined: 26 Jun 2014
Total Posts: 4443
20 Aug 2017 01:29 AM
SetPrimaryPartCFrame will work regardless (anchored or welded)

local goal = script.Parent.PrimaryPart.CFrame+Vector3.new(55,55,0)

game:GetService('RunService').Heartbeat:connect(function(step)
print'me'
script.Parent:SetPrimaryPartCFrame(script.Parent.PrimaryPart.CFrame:lerp(goal,step/2))
end)
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
20 Aug 2017 01:37 AM
I might have messed up my welds, do you have anything for that?
Report Abuse
Casualist is not online. Casualist
Joined: 26 Jun 2014
Total Posts: 4443
20 Aug 2017 01:38 AM
Messed up how?
You could I guess use the GetDescendants method and delete any/all jointinstances in the model
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