Hi Developers! I have this error while making a bobble head script?
Strafe blending disabled. No linear velocity information for “walk” and “run”.
What does this error mean?
Heres the code:
local char = script.Parent
local hum = char:WaitForChild(“Humanoid”)
local root = char:WaitForChild(“HumanoidRootPart”)
game:GetService(“RunService”).RenderStepped:Connect(function()
local Time = tick()
if hum.MoveDirection.Magnitude > 0 then
local speed = root.Velocity.Magnitude
local x = math.cos(Time * speed) / 2
local y = math.abs(math.sin(Time * speed)) / 2
local bobble = Vector3.new(x, y, 0)
hum.CameraOffset = hum.CameraOffset:Lerp(bobble, 0.1)
else
hum.CameraOffset = hum.CameraOffset * 1
end
end)
No, I think it only enables when a new place is created from that version. Anyways that is something that you don’t need to worry now, because it doesn’t affect your game in any.