As you know, Speed Run 4: https://www.roblox.com/games/183364845/MOON-Speed-Run-4 was able to accomplish this smooth movement but I really don’t know how they were able to achieve it?
My guess is that he used body force or something to make it more smooth but for now, I honestly have no clue how he was able to do this? Any ideas on how I can make it?
My current script:
local BodyF = -- the bodyforce
local hit, contact, normal = workspace:FindPartOnRay(...)
local axis = BodyF.Force.Unit:Cross(normal)
local dot = BodyF.Force.Unit:Dot(normal)
-- the closer to 0 for dot, the softer the angle
local angle = math.asin(dot)
-- you can probably also use math.pi/2 - math.acos(dot)
if axis ~= Vector3.new() then
BodyF.Force = CFrame.fromAxisAngle(axis.Unit, angle) * BodyF.Force -- * 10 ?
else -- force is perpendicular to normal
BodyF.Force = CFrame.Angles(math.pi/2,0,0) * BodyF.Force.Magnitude
end
Please answear me, what should I need to edit or paste into this script.
