|
| 12 Mar 2017 09:55 PM |
this is a script inside a script
local cpart = game.Workspace.CamPart local dest = game.Workspace.Dest script.Parent.MouseButton1Click:connect(function() cpart.CFrame:lerp(dest.CFrame) end)
whats gonna work, teamwork! |
|
|
| Report Abuse |
|
|
|
| 12 Mar 2017 09:58 PM |
no
lerping accepts Start, End, Alpha
when you use method call (:) you already send the cframe using the method as Start
newCFrame = startCFrame:Lerp(EndCFrame, Alpha)
Alpha is a percentage between Start and End, at 0% (0) it will be all the way at the Start, and at 100% (1) it will be all the way at the End. Use a for loop or some sort of continuous loop to lerp it properly. |
|
|
| Report Abuse |
|
|
|
| 12 Mar 2017 09:59 PM |
well can i just make it when you press a gui it makes a brick tween to a destination
whats gonna work, teamwork! |
|
|
| Report Abuse |
|
|
|
| 12 Mar 2017 10:06 PM |
| you can but you will need to change the percentage during the tween so you could try using a for loop to get increasingly closet to the end point |
|
|
| Report Abuse |
|
|
|
| 12 Mar 2017 10:08 PM |
gtg if you can write the script below
whats gonna work, teamwork! |
|
|
| Report Abuse |
|
|
Contriox
|
  |
| Joined: 09 Feb 2014 |
| Total Posts: 1970 |
|
|
| 12 Mar 2017 10:24 PM |
example I made a few hours ago
https://forum.roblox.com/Forum/ShowPost.aspx?PostID=211827563 |
|
|
| Report Abuse |
|
|