|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 07 Jan 2017 07:29 PM |
| Help? Example script???? For welds??? |
|
|
| Report Abuse |
|
|
|
| 07 Jan 2017 07:37 PM |
| Trying to lerp the weld's C1 to the desired position. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
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 |
|
|
|
| 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
|
  |
| 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 |
|
|