I’m trying to get the move direction if a ball and it keeps giving nan nan nan whenever I make a variable for it. Does anyone know how to fix this? Thanks
bullet.Touched:Connect(function(hitted)
if hitted.Parent:FindFirstChild("Humanoid") or hitted:IsDescendantOf(tool) or hitted.Parent == nil or hitted.Name == "Paint" then return end
local vectorSpot, CFspot = bullet.Position, bullet.CFrame
local velocityDir = hitted.AssemblyLinearVelocity.Unit
print(velocityDir)--this prints nan, nan, nan
bullet:Destroy()
end)