I want to make a bunny that jumps all the time and moves to random positions using CFrame:Lerp().
The problem is that since the bunny jumps all the time, :Lerp() would make the jumping wanky.
The only solution I can think of is to somehow make :Lerp() ignore the Y axis.
walk = function()
while true do
local WalkToCFrame = script.Parent.Body.CFrame * CFrame.new(math.random(-30,30),0,math.random(-30,30))
local CFrameDifference = script.Parent.Body.CFrame*WalkToCFrame:Inverse()
for i = 0,1,0.1 do
script.Parent.Body.CFrame = script.Parent.Body.CFrame:Lerp(WalkToCFrame, i)
wait()
end
script.Parent.Body.CFrame = WalkToCFrame
print(CFrameDifference)
wait(math.random(3,7))
end
end,