I don’t know if this is a bug or what. I don’t really have any proper solutions for it as well. Basically I have a camera script that runs every frame. It lerps the camera for a smoothing effect. However on the PrimaryPart of the Character when I land I need the walker to stand up and start walking. When I do that the position turns to -nan(ind)
Are there any workarounds for this bug?
Is it a bug?
-- Snippet of Camera Module
SubjectPosition = SubjectPosition:Lerp(
SmoothCamera.CameraSubject.Position,
0.3--DeltaTime * 7
)
print(SmoothCamera.CameraSubject.Position)
-- Output
21:18:05.382 -192.94442749023, 9.2943496704102, 26.245000839233 - Client - SmoothCamera:70
21:18:05.414 -198.2624206543, 6.8820176124573, 27.619895935059 - Client - SmoothCamera:70
21:18:05.446 -nan(ind), -nan(ind), -nan(ind) (x13) - Client - SmoothCamera:70 -- I have no idea why this happens
21:18:05.798 -0.17216642200947, 3.3452119827271, -0.51453220844269 - Client - SmoothCamera:70
21:18:05.824 0.014866083860397, 5.5913429260254, 1.0129625797272 - Client - SmoothCamera:70
21:18:05.845 0.22043853998184, 7.9017457962036, 2.5638992786407 - Client - SmoothCamera:70
21:18:05.872 0.42693275213242, 10.152460098267, 4.0514707565308 - Client - SmoothCamera:70
-- Control Module -- When this piece of code runs the camera brakes
if VindicroyController.Status ~= "Walking" then
VectorForce.Enabled = false
AngularVelocity.Enabled = false
--VindicroyController.Character.Glider.Detacher.Detacher.Enabled = false
--AlignOrientation.Enabled = true
AlignPosition.Enabled = true
VindicroyController.Status = "Walking"
end
Video: